Fix error if session is None
This commit is contained in:
parent
c225ae70e4
commit
45635736bf
|
@ -533,8 +533,7 @@ class ConnectionHandlersBase:
|
||||||
# We got our message's receipt
|
# We got our message's receipt
|
||||||
if obj.receipt_received_tag and app.config.get_per('accounts',
|
if obj.receipt_received_tag and app.config.get_per('accounts',
|
||||||
self.name, 'request_receipt'):
|
self.name, 'request_receipt'):
|
||||||
ctrl = obj.session.control
|
if obj.session and not obj.session.ctrl:
|
||||||
if not ctrl:
|
|
||||||
# Received <message> doesn't have the <thread> element
|
# Received <message> doesn't have the <thread> element
|
||||||
# or control is not bound to session?
|
# or control is not bound to session?
|
||||||
# --> search for it
|
# --> search for it
|
||||||
|
|
Loading…
Reference in New Issue