Commit 99441235 authored by Antoine Millet's avatar Antoine Millet
Browse files

Default shutdown on Protocol now unregister it from connection

parent 8275bdb2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -83,7 +83,12 @@ class Protocol(object):
        pass

    def shutdown(self):
        pass
        """ Shutdown the protocol.

        By default this method unregister the protocol from the connection.
        """
        if self._label != 0:  # Label 0 protocol can't be shutdown.
            self._connection.unregister_protocol(self._label)


from sjrpc.core.protocols.rpc import RpcProtocol