From 77a6fd4c25bc6b523f54b0b9eede8c2ceadb03ec Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 1 Jul 2022 21:05:04 +0300 Subject: polaris/protocol: resend PingMessages if no response --- src/polaris/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3