Fixed got_offline triggering bug.
This commit is contained in:
parent
9e3d506651
commit
8aa3d0c047
1 changed files with 3 additions and 2 deletions
|
@ -593,8 +593,9 @@ class BaseXMPP(XMLStream):
|
|||
|
||||
if not connections and not self.roster[jid]['in_roster']:
|
||||
del self.roster[jid]
|
||||
self.event("got_offline", presence)
|
||||
if was_offline:
|
||||
if not was_offline:
|
||||
self.event("got_offline", presence)
|
||||
else:
|
||||
return False
|
||||
|
||||
name = '(%s) ' % name if name else ''
|
||||
|
|
Loading…
Reference in a new issue