def stopFactory(self):
        """Stop the factory.

        See the documentation of
        `twisted.internet.protocol.ReconnectingClientFactory` for details.
        """
        if self._client:
            yield self._client.halt()
        protocol.ReconnectingClientFactory.stopFactory(self)
Stop the factory.

        See the documentation of
        `twisted.internet.protocol.ReconnectingClientFactory` for details.