[Git][gajim/gajim][master] Fix error if session is None
Philipp Hörist
gitlab at dev.gajim.org
Fri Jul 13 18:06:44 CEST 2018
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
45635736 by Philipp Hörist at 2018-07-13T18:06:31+02:00
Fix error if session is None
- - - - -
1 changed file:
- gajim/common/connection_handlers.py
Changes:
=====================================
gajim/common/connection_handlers.py
=====================================
--- 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 <message> doesn't have the <thread> element
# or control is not bound to session?
# --> search for it
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/45635736bfac274ac0654a46344ab8cc62e71410
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/45635736bfac274ac0654a46344ab8cc62e71410
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20180713/1889a593/attachment.html>
More information about the Commits
mailing list