1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-06-15 12:52:26 -04:00

fix for None packet in rx thread

This patch updates the process_packet to ensure when we
try to decode a packet we actually get one.
This commit is contained in:
Hemna 2025-02-14 11:06:19 -05:00
parent 6cd7e99713
commit d82a81a2c3

View File

@ -105,6 +105,11 @@ class APRSDDupeRXThread(APRSDRXThread):
PluginProcessPacketThread for processing. PluginProcessPacketThread for processing.
""" """
packet = self._client.decode_packet(*args, **kwargs) packet = self._client.decode_packet(*args, **kwargs)
if not packet:
LOG.error(
'No packet received from decode_packet. Most likely a failure to parse'
)
return
packet_log.log(packet) packet_log.log(packet)
pkt_list = packets.PacketList() pkt_list = packets.PacketList()