def clientConnectionMade(self, protocol):
        """
        Store the protocol and fire the connection deferred.
        """
        self.protocolInstance = protocol
        d, self.connectionMade = self.connectionMade, None
        if d is not None:
            d.callback(None)

        Store the protocol and fire the connection deferred.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_pb.py