From 3574868458cf5415d076981cd5c5b4814961a333 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 12 May 2021 11:24:54 +0000 Subject: [PATCH] reset ping timer when we read a line --- ircrobots/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircrobots/server.py b/ircrobots/server.py index 14c8a40..dfc7b62 100644 --- a/ircrobots/server.py +++ b/ircrobots/server.py @@ -297,7 +297,8 @@ class Server(IServer): for done in dones: if isinstance(done.result(), Line): - line = done.result() + ping_sent = False + line = done.result() self._process_queue.append(line) elif done.result() is None: if ping_sent: