def send_Disconnect(self, reason=None): log_p2p.debug('sending disconnect', remote_id=self, readon=reason) self.send_packet(packeter.dump_Disconnect(reason=reason)) # end connection time.sleep(2) forget = reason in self.reasons_to_forget signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
def send_Disconnect(self, reason=None): logger.info('%r sending disconnect: %r', self, reason) self.send_packet(packeter.dump_Disconnect(reason=reason)) # end connection time.sleep(2) forget = reason in self.reasons_to_forget signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
def send_Disconnect(self, reason=None): logger.info('disconnecting {0}, reason: {1}'.format( str(self), reason or '')) self.send_packet(packeter.dump_Disconnect()) # end connection time.sleep(2) signals.disconnect_requested.send(self)
def send_Disconnect(self, reason=None): logger.info('disconnecting {0}, reason: {1}'.format( str(self), reason or '')) self.send_packet(packeter.dump_Disconnect(reason=reason)) # end connection time.sleep(2) forget = reason in self.reasons_to_forget signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
def send_Disconnect(self, reason=None): logger.info('disconnecting {0}, reason: {1}'.format( str(self), reason or '')) self.send_packet(packeter.dump_Disconnect()) # end connection time.sleep(2) forget = True if reason and 'Incompatible' in reason else False signals.peer_disconnect_requested.send(Peer, peer=self, forget=forget)
def send_Disconnect(self, reason=None): self.send_packet(packeter.dump_Disconnect()) # end connection time.sleep(2) signals.disconnect_requested.send(self)