@tornado.gen.coroutine
    def get(self):
        # End this sign-in session and kill the cookie.
        yield self.application.twsessionmgr.remove_session(self)
        # Clobber any open web sockets on this session. (But the player
        # might still be signed in on a different session.)
        ls = self.application.twconntable.as_dict().values()
        ls = [ conn for conn in ls if conn.sessionid == self.twsession['sid'] ]
        for conn in ls:
            try:
                conn.close('Your session has been signed out.')
            except Exception as ex:
                pass
        # Now reload the session status. Also override the out-of-date
        # get_template_namespace entries.
        yield self.find_current_session()
        self.render('logout.html',
                    twsessionstatus=self.twsessionstatus,
                    twsession=self.twsession)
dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/handlers.py/LogOutHandler.get/original