plugin XEP-0060: free SatPubSubClient instance on profile disconnection
This commit is contained in:
parent
303b58cb03
commit
85749f8a8b
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue