From bf5599d4d01e12659e3d01fc29587d503e66beb0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 13 May 2011 21:00:39 +0200 Subject: [PATCH] =?UTF-8?q?fixes=20#1995=20(hopefully=20google=20will=20fi?= =?UTF-8?q?x=20their=20server,=20one=20day=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index 61d32ae8..7e0fb747 100644 --- a/src/core.py +++ b/src/core.py @@ -1363,7 +1363,12 @@ class Core(object): if isinstance(tab, tabs.MucTab): muc.leave_groupchat(self.xmpp, tab.get_room().name, tab.get_room().own_nick, msg) self.save_config() - self.xmpp.disconnect(False) + # Ugly fix thanks to gmail servers + try: + sys.stderr = None + self.xmpp.disconnect(False) + except: + pass def command_quit(self, arg): """