Fixed speedtest TX abort on link stale status
parent
e31c570d2b
commit
31298e5eda
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue