def _disconnected(self):
        """
        Called if we are disconnected and have callbacks registered.
        """
        for callback in self.disconnectCallbacks:
            callback(self)
        self.disconnectCallbacks = None

        Called if we are disconnected and have callbacks registered.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/pb.py