bugfix : when we go online -> offline : delete conexion

This commit is contained in:
Yann Leboulanger 2004-03-28 14:30:49 +00:00
parent ef2affaaac
commit 80a65a2660
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ class GajimCore:
elif (ev[2][0] == 'offline') and (self.connected[ev[1]] == 1): elif (ev[2][0] == 'offline') and (self.connected[ev[1]] == 1):
self.connected[ev[1]] = 0 self.connected[ev[1]] = 0
con.disconnect() con.disconnect()
del self.connexions[con]
self.hub.sendPlugin('STATUS', ev[1], 'offline') self.hub.sendPlugin('STATUS', ev[1], 'offline')
if ev[2][0] != 'offline' and self.connected[ev[1]] == 1: if ev[2][0] != 'offline' and self.connected[ev[1]] == 1:
p = common.jabber.Presence() p = common.jabber.Presence()