don't traceback when quitting a groupchat. Fixes #4684
This commit is contained in:
parent
2a43e1c0e6
commit
68cdc3a5f8
|
@ -1759,7 +1759,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
def shutdown(self, status='offline'):
|
def shutdown(self, status='offline'):
|
||||||
# destroy banner tooltip - bug #pygtk for that!
|
# destroy banner tooltip - bug #pygtk for that!
|
||||||
self.subject_tooltip.destroy()
|
self.subject_tooltip.destroy()
|
||||||
if gajim.gc_connected[self.account][self.room_jid]:
|
if self.room_jid in gajim.gc_connected[self.account] and \
|
||||||
|
gajim.gc_connected[self.account][self.room_jid]:
|
||||||
# Tell connection to note the date we disconnect to avoid duplicate
|
# Tell connection to note the date we disconnect to avoid duplicate
|
||||||
# logs. We do it only when connected because if connection was lost
|
# logs. We do it only when connected because if connection was lost
|
||||||
# there may be new messages since disconnection.
|
# there may be new messages since disconnection.
|
||||||
|
|
Loading…
Reference in New Issue