mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-24 22:50:34 -04:00
Transport job callback in thread
This commit is contained in:
parent
f02715bced
commit
540bde4cd4
2 changed files with 4 additions and 1 deletions
|
@ -74,7 +74,9 @@ class Transport:
|
|||
# Process receipts list for timed-out packets
|
||||
if Transport.receipts_last_checked+Transport.receipts_check_interval < time.time():
|
||||
for receipt in Transport.receipts:
|
||||
receipt.check_timeout()
|
||||
thread = threading.Thread(target=receipt.check_timeout)
|
||||
thread.setDaemon(True)
|
||||
thread.start()
|
||||
if receipt.status != RNS.PacketReceipt.SENT:
|
||||
Transport.receipts.remove(receipt)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue