Send ping into inactive connection, not pong

This commit is contained in:
Lee Miller 2023-08-08 05:50:53 +03:00
parent ae40a3d0b8
commit e4887734a0
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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: