From e4887734a00308e68e4ca5d46f8bfcd3df485a4b Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 8 Aug 2023 05:50:53 +0300 Subject: [PATCH] Send ping into inactive connection, not pong --- minode/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minode/connection.py b/minode/connection.py index d53bbcd..bd1c2e3 100644 --- a/minode/connection.py +++ b/minode/connection.py @@ -135,7 +135,7 @@ class Connection(threading.Thread): time.time() - self.last_message_sent > 300 and self.status == 'fully_established' ): - self.send_queue.put(message.Message(b'pong', b'')) + self.send_queue.put(message.Message(b'ping', b'')) if self.status == 'disconnecting' or shared.shutting_down: data = None if not data: