From eeca570cc4e9791a5c379844f74271bc644dd401 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 6 Jun 2016 07:34:48 -0700 Subject: [PATCH] classes: make pingfreq consistent, bump timeouts --- classes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes.py b/classes.py index 5738e75..6ae14fb 100644 --- a/classes.py +++ b/classes.py @@ -47,8 +47,8 @@ class Irc(): self.bot_clients = {} self.protoname = proto.__name__ self.proto = proto.Class(self) - self.pingfreq = self.serverdata.get('pingfreq') or 90 - self.pingtimeout = self.pingfreq * 2 + self.pingfreq = self.serverdata.get('pingfreq') or 180 + self.pingtimeout = self.pingfreq * 3 self.connected = threading.Event() self.aborted = threading.Event() @@ -98,7 +98,7 @@ class Irc(): self.sid = self.serverdata["sid"] self.botdata = self.conf['bot'] self.pingfreq = self.serverdata.get('pingfreq') or 180 - self.pingtimeout = self.pingfreq * 2 + self.pingtimeout = self.pingfreq * 3 self.connected.clear() self.aborted.clear()