Skip to content

Commit

Permalink
Fixed missing check for dict entry existence
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Jan 10, 2025
1 parent c668a51 commit 1e1b9dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RNS/Transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,8 @@ def inbound(raw, interface=None):
now = time.time()
if now < announce_entry[1]:
RNS.log("Rebroadcasted announce for "+RNS.prettyhexrep(packet.destination_hash)+" has been passed on to another node, no further tries needed", RNS.LOG_DEBUG)
Transport.announce_table.pop(packet.destination_hash)
if packet.destination_hash in Transport.announce_table:
Transport.announce_table.pop(packet.destination_hash)

else:
received_from = packet.destination_hash
Expand Down

0 comments on commit 1e1b9dc

Please sign in to comment.