summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-01 21:05:04 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-01 21:05:30 +0300
commit77a6fd4c25bc6b523f54b0b9eede8c2ceadb03ec (patch)
tree709c038ddd178e85687ad3c1a242e3f9d1ffea51 /src
parent5b4cadc2b6a8b476fa283ea315a44d2581cc01f6 (diff)
polaris/protocol: resend PingMessages if no response
Diffstat (limited to 'src')
-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 f26d25e..6f71e98 100644
--- a/src/polaris/protocol.py
+++ b/src/polaris/protocol.py
@@ -937,7 +937,7 @@ class UDPConnection(threading.Thread, ConnectionStatusListener):
wm.message.encrypt(outkey=self.encoutkey, inkey=self.encinkey,
token=self.device_token, pubkey=self.pubkey)
buf = wm.message.frame.pack()
- one_shot = isinstance(wm.message, (AckMessage, NakMessage, PingMessage))
+ one_shot = isinstance(wm.message, (AckMessage, NakMessage))
# self._logger.debug(f'run: raw data to be sent: {buf.hex()}')
# sending the first time