Skip to content

Commit 71fca36

Browse files
committed
Closing bosh connection after getting credentials
1 parent 6258f8c commit 71fca36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

conversejs/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def get_conversejs_context(context, xmpp_login=False):
4141
bosh = BOSHClient(xmpp_account.jid, xmpp_account.password,
4242
context['CONVERSEJS_BOSH_SERVICE_URL'])
4343
jid, sid, rid = bosh.get_credentials()
44+
bosh.close_connection()
45+
4446
context.update({'jid': jid, 'sid': sid, 'rid': rid})
4547

4648
return context

0 commit comments

Comments
 (0)