plugin XEP-0060: move setting of pubsub_watching to profile_connecting so it's available early
This commit is contained in:
parent
bf9db70bee
commit
27f4dfee75
1 changed files with 3 additions and 1 deletions
|
|
@ -324,8 +324,10 @@ class XEP_0060(object):
|
|||
client.pubsub_client = SatPubSubClient(self.host, self)
|
||||
return client.pubsub_client
|
||||
|
||||
async def profile_connected(self, client):
|
||||
def profile_connecting(self, client):
|
||||
client.pubsub_watching = set()
|
||||
|
||||
async def profile_connected(self, client):
|
||||
try:
|
||||
client.pubsub_service = jid.JID(
|
||||
self.host.memory.config_get("", "pubsub_service")
|
||||
|
|
|
|||
Loading…
Reference in a new issue