quarry.net.protocol.Protocol.connection_lost

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 7

Example 1

Project: quarry Source File: server.py
Function: connection_lost
    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)