changeset f2c55663bef2 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=f2c55663bef2 description: [gdr_gdr] Prevent traceback. Fixes #8265
diffstat:
src/common/protocol/bytestream.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 8ae55b949235 -r f2c55663bef2 src/common/protocol/bytestream.py --- a/src/common/protocol/bytestream.py Sat Feb 20 20:04:47 2016 +0100 +++ b/src/common/protocol/bytestream.py Sat Feb 20 21:16:16 2016 +0100 @@ -199,8 +199,9 @@ if not self.connection or self.connected < 2: return if file_props.session_type == 'jingle': - jingle = self._sessions[file_props.sid] - jingle.cancel_session() + if file_props.sid in self._sessions: + jingle = self._sessions[file_props.sid] + jingle.cancel_session() return iq = nbxmpp.Iq(to=file_props.sender, typ='error') iq.setAttr('id', file_props.request_id)