From 6e69c3d2b05fd566ec4cb8ae4e22fa68d40277a6 Mon Sep 17 00:00:00 2001 From: TheKysek Date: Thu, 25 May 2017 11:52:48 +0200 Subject: [PATCH] Do not log invalid reson for disconnect --- src/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.py b/src/connection.py index 47c704e..992d408 100644 --- a/src/connection.py +++ b/src/connection.py @@ -98,7 +98,7 @@ class Connection(threading.Thread): 'Disconnecting from {}:{}. Reason: time.time() - self.last_message_received > shared.timeout'.format( self.host, self.port)) self.status = 'disconnecting' - if time.time() - self.last_message_received > 30 and self.status != 'fully_established': + if time.time() - self.last_message_received > 30 and self.status != 'fully_established'and self.status != 'disconnecting': logging.debug( 'Disconnecting from {}:{}. Reason: time.time() - self.last_message_received > 30 and self.status != \'fully_established\''.format( self.host, self.port))