don't try to send thing after we are disconnected. Fixes #5437
This commit is contained in:
parent
8720eb221d
commit
094941f89e
|
@ -553,6 +553,7 @@ class CommonConnection:
|
||||||
self.connect_and_init(show, msg, sign_msg)
|
self.connect_and_init(show, msg, sign_msg)
|
||||||
|
|
||||||
elif show == 'offline':
|
elif show == 'offline':
|
||||||
|
self.connected = 0
|
||||||
if self.connection:
|
if self.connection:
|
||||||
p = common.xmpp.Presence(typ = 'unavailable')
|
p = common.xmpp.Presence(typ = 'unavailable')
|
||||||
p = self.add_sha(p, False)
|
p = self.add_sha(p, False)
|
||||||
|
|
Loading…
Reference in New Issue