diff --git a/gajim/common/connection_handlers.py b/gajim/common/connection_handlers.py index e1a2f6773..ccd107d4a 100644 --- a/gajim/common/connection_handlers.py +++ b/gajim/common/connection_handlers.py @@ -533,8 +533,7 @@ class ConnectionHandlersBase: # We got our message's receipt if obj.receipt_received_tag and app.config.get_per('accounts', self.name, 'request_receipt'): - ctrl = obj.session.control - if not ctrl: + if obj.session and not obj.session.ctrl: # Received doesn't have the element # or control is not bound to session? # --> search for it