コード例 #1
0
ファイル: client.py プロジェクト: yxjsolid/pokernetwork
 def connectionLost(self, reason):
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
コード例 #2
0
ファイル: client.py プロジェクト: dottobr83/pokernetwork
 def connectionLost(self, reason):
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
コード例 #3
0
ファイル: server.py プロジェクト: Usr-X/poker-network
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer") and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     if self.avatar:
         while len(self._queues) > 0:
             self._processQueues()
         self.factory.destroyAvatar(self.avatar)
     del self.avatar
     self.ignoreIncomingData()
     UGAMEProtocol.connectionLost(self, reason)
コード例 #4
0
ファイル: client.py プロジェクト: pokermania/poker-network
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer") and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     if not reason.check(error.ConnectionDone):
         self.log.debug("connectionLost: %s", reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
コード例 #5
0
ファイル: client.py プロジェクト: stephica/poker-network
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer") and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     if not reason.check(error.ConnectionDone) and self.factory.verbose > 3:
         self.message("UGAMEClient.connectionLost %s" % reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
コード例 #6
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer"
                ) and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     if self.avatar:
         while len(self._queues) > 0:
             self._processQueues()
         self.factory.destroyAvatar(self.avatar)
     del self.avatar
     self.ignoreIncomingData()
     UGAMEProtocol.connectionLost(self, reason)
コード例 #7
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer"
                ) and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     if not reason.check(error.ConnectionDone):
         self.log.debug("connectionLost: %s", reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
コード例 #8
0
ファイル: server.py プロジェクト: yxjsolid/pokernetwork
 def connectionLost(self, reason):
     if self.avatar:
         self.factory.destroyAvatar(self.avatar)
         self.avatar = None
     UGAMEProtocol.connectionLost(self, reason)
コード例 #9
0
ファイル: server.py プロジェクト: dottobr83/pokernetwork
 def connectionLost(self, reason):
     if self.avatar:
         self.factory.destroyAvatar(self.avatar)
         self.avatar = None
     UGAMEProtocol.connectionLost(self, reason)