Fixed speedtest TX abort on link stale status

master
Mark Qvist 2026-08-17 01:00:29 +02:00
parent e31c570d2b
commit 31298e5eda
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ def link_established(link):
RNS.log("Link established with server, sending...")
rd = os.urandom(link.mdu)
started = time.time()
while link.status == RNS.Link.ACTIVE and data_sent < data_cap*1.25:
while link.status != RNS.Link.CLOSED and data_sent < data_cap*1.25:
RNS.Packet(server_link, rd, create_receipt=False).send()
data_sent += len(rd)