polaris/protocol: resend PingMessages if no response

This commit is contained in:
Evgeny Zinoviev 2022-07-01 21:05:04 +03:00
parent 5b4cadc2b6
commit 77a6fd4c25

View File

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