From 3e8716365ecd2553e6ad3d1d057947a032fdb0bc Mon Sep 17 00:00:00 2001 From: Hemna Date: Mon, 15 Apr 2024 11:29:26 -0400 Subject: [PATCH] another fix for tx send --- aprsd/threads/tx.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aprsd/threads/tx.py b/aprsd/threads/tx.py index efd7c2c..273f2ec 100644 --- a/aprsd/threads/tx.py +++ b/aprsd/threads/tx.py @@ -79,7 +79,6 @@ def _send_direct(packet, aprs_client=None): packet_log.log(packet, tx=True) try: cl.send(packet) - packet.send_count += 1 except Exception as e: LOG.error(f"Failed to send packet: {packet}") LOG.error(e) @@ -119,7 +118,7 @@ class SendPacketThread(aprsd_threads.APRSDThread): return False else: send_now = False - if packet.send_count == packet.retry_count: + if packet.send_count >= packet.retry_count: # we reached the send limit, don't send again # TODO(hemna) - Need to put this in a delayed queue? LOG.info(