From 3104e6bf5dc925eabacf64353a875a2995f1aaf9 Mon Sep 17 00:00:00 2001 From: Ed Serzo Date: Wed, 10 Feb 2021 14:04:40 -0500 Subject: [PATCH] Reset sleep timer upon reconnect --- socketio/redis_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/socketio/redis_manager.py b/socketio/redis_manager.py index cef7624..d3fe29d 100644 --- a/socketio/redis_manager.py +++ b/socketio/redis_manager.py @@ -92,6 +92,7 @@ class RedisManager(PubSubManager): # pragma: no cover while True: try: if connect: + retry_sleep = 1 self._redis_connect() self.pubsub.subscribe(self.channel) for message in self.pubsub.listen():