'A client connection has been lost'

def lost_connection(self, connection):

    try:
        self.connections.remove(connection)
    except ValueError:
        pass
    self.presence_handler.update_external_syncs_clear(connection.conn_id)
