def Shutdown(self):
        """Disconnect all connected peers."""
        logger.debug("Nodeleader shutting down")

        self.stop_peer_check_loop()
        self.peer_check_loop_deferred = None

        self.stop_check_bcr_loop()
        self.check_bcr_loop_deferred = None

        self.stop_memcheck_loop()
        self.memcheck_loop_deferred = None

        self.stop_blockheight_loop()
        self.blockheight_loop_deferred = None

        for p in self.Peers:
            p.Disconnect()
def Shutdown ( self ) : logger . debug ( "Nodeleader shutting down" ) self . stop_peer_check_loop ( ) self . peer_check_loop_deferred = None self . stop_check_bcr_loop ( ) self . check_bcr_loop_deferred = None self . stop_memcheck_loop ( ) self . memcheck_loop_deferred = None self . stop_blockheight_loop ( ) self . blockheight_loop_deferred = None for p in self . Peers : p . Disconnect ( )
Disconnect all connected peers.