summaryrefslogtreecommitdiff
path: root/src/polaris/protocol.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-02 15:42:23 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-02 15:42:23 +0300
commit4f04fe96a82dd2a2f36dd445f997b04d4f120324 (patch)
treeab61da321003394fe4d62c9b1fb876aa3dfa01bb /src/polaris/protocol.py
parent9b280e35186a3f0078a39ca013454cc8d0c21d62 (diff)
polaris/protocol: delete PingMessage from queue immediately, just like ACK/NAKs
Diffstat (limited to 'src/polaris/protocol.py')
-rw-r--r--src/polaris/protocol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polaris/protocol.py b/src/polaris/protocol.py
index d562ff9..c145009 100644
--- a/src/polaris/protocol.py
+++ b/src/polaris/protocol.py
@@ -989,7 +989,7 @@ class UDPConnection(threading.Thread, ConnectionStatusListener):
remove_list = []
for wm in self.outgoing_queue:
if wm.phase == MessagePhase.DONE:
- if isinstance(wm.message, (AckMessage, NakMessage)) or time.time() - wm.phase_update_time >= MESSAGE_QUEUE_REMOVE_DELAY:
+ if isinstance(wm.message, (AckMessage, NakMessage, PingMessage)) or time.time() - wm.phase_update_time >= MESSAGE_QUEUE_REMOVE_DELAY:
remove_list.append(wm)
continue
message = wm