Skip to content
Snippets Groups Projects
Commit 731c8f69 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback when receiving a disco info while we are disconnected. Fixes #5042

parent 796c5084
No related branches found
No related tags found
No related merge requests found
...@@ -829,6 +829,8 @@ class ConnectionDisco: ...@@ -829,6 +829,8 @@ class ConnectionDisco:
def _DiscoverInfoCB(self, con, iq_obj): def _DiscoverInfoCB(self, con, iq_obj):
log.debug('DiscoverInfoCB') log.debug('DiscoverInfoCB')
if not self.connection or self.connected < 2:
return
# According to XEP-0030: # According to XEP-0030:
# For identity: category, type is mandatory, name is optional. # For identity: category, type is mandatory, name is optional.
# For feature: var is mandatory # For feature: var is mandatory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment