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

Now disable its handler when a client is shutdown

parent b20d23b6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -203,6 +203,9 @@ class Client(object):
    def shutdown(self):
        """ Shutdown the connection to the client.
        """
        # Disable the client handler:
        self.conn.rpc.set_handler(None)

        # Unregister all remote tags:
        for tag in self._remote_tags.copy():
            self.tags_unregister(tag)