diff --git a/Examples/Speedtest.py b/Examples/Speedtest.py index 755d5f97..d26f85ac 100644 --- a/Examples/Speedtest.py +++ b/Examples/Speedtest.py @@ -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)