don't try to send thing after we are disconnected. Fixes #5437

This commit is contained in:
Yann Leboulanger 2009-11-19 22:42:35 +01:00
parent 8720eb221d
commit 094941f89e
1 changed files with 1 additions and 0 deletions

View File

@ -553,6 +553,7 @@ class CommonConnection:
self.connect_and_init(show, msg, sign_msg)
elif show == 'offline':
self.connected = 0
if self.connection:
p = common.xmpp.Presence(typ = 'unavailable')
p = self.add_sha(p, False)