From 149921ac47e1aee9eb733eac316158bfb029da0e Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 11 Jul 2015 20:10:21 -0700 Subject: [PATCH] main: remove incorrect usage of socket.shutdown, and raise socket timeout to something more reasonable --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 6f2a7b8..311322e 100755 --- a/main.py +++ b/main.py @@ -52,7 +52,7 @@ class Irc(): log.info("Connecting to network %r on %s:%s", self.name, ip, port) self.socket = socket.socket() self.socket.setblocking(0) - self.socket.settimeout(60) + self.socket.settimeout(180) self.socket.connect((ip, port)) self.proto.connect(self) self.loaded = [] @@ -62,7 +62,6 @@ class Irc(): def disconnect(self): self.connected = False - self.socket.shutdown() self.socket.close() def run(self):