diff --git a/src/plugins/plugin_xep_0060.py b/src/plugins/plugin_xep_0060.py index e840b70e..30595b8c 100755 --- a/src/plugins/plugin_xep_0060.py +++ b/src/plugins/plugin_xep_0060.py @@ -65,6 +65,12 @@ class XEP_0060(object): self.clients[profile] = SatPubSubClient(self.host, self) return self.clients[profile] + def profileDisconnected(self, profile): + try: + del self.clients[profile] + except KeyError: + pass + def addManagedNode(self, node_name, callback): """Add a handler for a namespace @param namespace: NS of the handler (will appear in disco info)