override fun getSession()

in src/main/kotlin/org/jetbrains/teamcity/github/util/LayeredHttpServletRequest.kt [19:30]


    override fun getSession(create: Boolean): HttpSession? {
        val session = mySession
        if (session != null && session.isInvalidated) {
            mySession = null
        }

        if (mySession == null && create) {
            mySession = FakeHttpSession()
        }

        return mySession
    }