def close_tworld(self, dat):
        self.log.error('Connection to tworld closed.')
        # All connections we're holding are back to unavailable status.
        for (connid, conn) in self.app.twconntable.as_dict().items():
            conn.available = False
        self.tworld = None
        self.twbuffer = None
        self.tworldavailable = False
        self.tworldtimerbusy = False
Callback from tworld reading handler.
dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/servers.py/ServerMgr.close_tworld