diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 88ae12409..ed4c01c3b 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -829,6 +829,8 @@ class ConnectionDisco: def _DiscoverInfoCB(self, con, iq_obj): log.debug('DiscoverInfoCB') + if not self.connection or self.connected < 2: + return # According to XEP-0030: # For identity: category, type is mandatory, name is optional. # For feature: var is mandatory