make sure SM is disabled with reconnecting

This commit is contained in:
Jefry Lagrange 2012-03-14 23:49:37 -04:00
parent e0bcd1eceb
commit 8700389d98
1 changed files with 1 additions and 0 deletions

View File

@ -811,6 +811,7 @@ class Connection(CommonConnection, ConnectionHandlers):
gajim.nec.push_incoming_event(OurShowEvent(None, conn=self,
show='offline'))
else:
self.sm.enabled = False
gajim.nec.push_incoming_event(OurShowEvent(None, conn=self,
show='error'))
self.disconnect()