improve speed when quitting Gajim, and prevent to send twice STATUS event when we quit
This commit is contained in:
parent
ec8044c4dc
commit
7ef62a99f2
|
@ -203,8 +203,8 @@ class Connection(ConnectionHandlers):
|
|||
# after we auth to server
|
||||
self.old_show = STATUS_LIST[self.connected]
|
||||
self.connected = 0
|
||||
self.dispatch('STATUS', 'offline')
|
||||
if not self.on_purpose:
|
||||
self.dispatch('STATUS', 'offline')
|
||||
self.disconnect()
|
||||
if gajim.config.get_per('accounts', self.name, 'autoreconnect'):
|
||||
self.connected = -1
|
||||
|
|
|
@ -3762,6 +3762,8 @@ class RosterWindow:
|
|||
self.quit_on_next_offline -= 1
|
||||
if self.quit_on_next_offline < 1:
|
||||
self.quit_gtkgui_interface()
|
||||
else:
|
||||
# No need to redraw contacts if we're quitting
|
||||
if accountIter:
|
||||
model[accountIter][C_SECPIXBUF] = None
|
||||
if gajim.con_types.has_key(account):
|
||||
|
|
Loading…
Reference in New Issue