Author: asterix Date: 2008-09-30 12:22:55 +0200 (Tue, 30 Sep 2008) New Revision: 10448
Modified: trunk/src/common/connection_handlers.py Log: prevent traceback when removing an inexistant session. Fixes #1288
Modified: trunk/src/common/connection_handlers.py =================================================================== --- trunk/src/common/connection_handlers.py 2008-09-29 20:52:53 UTC (rev 10447) +++ trunk/src/common/connection_handlers.py 2008-09-30 10:22:55 UTC (rev 10448) @@ -1304,6 +1304,8 @@ def delete_session(self, jid, thread_id): if not jid in self.sessions: jid = gajim.get_jid_without_resource(jid) + if not jid in self.sessions: + return
del self.sessions[jid][thread_id]