Exemple #1
0
    def onDisconnect(self, *args, **kwargs):
        ApplicationSession.onDisconnect(self, *args, **kwargs)

        if not self.joined:
            self.logger.error("Impossible to join realm")

        if reactor.running:
            reactor.stop()

        self.logger.info("Disconnected")
Exemple #2
0
    def onDisconnect(self, *args, **kwargs):
        ApplicationSession.onDisconnect(self, *args, **kwargs)

        if not self.joined:
            self.logger.error("Impossible to join realm")

        if reactor.running:
            reactor.stop()

        self.logger.info("Disconnected")
 def onDisconnect(self):
     ApplicationSession.onDisconnect(self)
     from twisted.internet import reactor
     reactor.stop()
Exemple #4
0
 def onDisconnect(self):
     ApplicationSession.onDisconnect(self)
     if self._stop:
         from twisted.internet import reactor
         if reactor.running:
             reactor.stop()