mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-04-15 05:13:35 -04:00
Log instead of raise on outbound on closed link
This commit is contained in:
parent
3cdebb6e8a
commit
456eea9c13
@ -33,7 +33,6 @@ import math
|
||||
import time
|
||||
import RNS
|
||||
|
||||
|
||||
class LinkCallbacks:
|
||||
def __init__(self):
|
||||
self.link_established = None
|
||||
|
@ -271,7 +271,11 @@ class Packet:
|
||||
if not self.sent:
|
||||
if self.destination.type == RNS.Destination.LINK:
|
||||
if self.destination.status == RNS.Link.CLOSED:
|
||||
raise IOError("Attempt to transmit over a closed link")
|
||||
RNS.log("Attempt to transmit over a closed link, dropping packet", RNS.LOG_DEBUG)
|
||||
self.sent = False
|
||||
self.receipt = None
|
||||
return False
|
||||
|
||||
else:
|
||||
self.destination.last_outbound = time.time()
|
||||
self.destination.tx += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user