From 19e7cd6fb59fb04f9075d91b6df873f5f3459998 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 31 May 2005 16:47:05 +0000 Subject: [PATCH] catch exception when we disconnect --- src/common/connection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index ab3ce0e79..1b8207e0b 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -668,7 +668,10 @@ class Connection: if msg: p.setStatus(msg) self.connection.send(p) - self.connection.disconnect() + try: + self.connection.disconnect() + except: + pass self.dispatch('STATUS', 'offline') self.connection = None elif show != 'offline' and self.connected: