Here are the examples of the python api quarry.net.protocol.Protocol.connection_lost taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Example 1
def connection_lost(self, reason=None):
"""Called when the connection is lost"""
if self.protocol_mode in ("login", "play"):
self.factory.players.discard(self)
Protocol.connection_lost(self, reason)