def dontNotifyOnDisconnect(self, callback):
        """
        Remove a callback that was registered with notifyOnDisconnect.

        @param callback: a callable
        """
        self.disconnectCallbacks.remove(callback)
        if not self.disconnectCallbacks:
            self.broker.dontNotifyOnDisconnect(self._disconnected)

        Remove a callback that was registered with notifyOnDisconnect.

        @param callback: a callable
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/pb.py