prevent traceback when receiving a disco info while we are disconnected. Fixes #5042
This commit is contained in:
parent
796c5084c5
commit
731c8f691f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue