diff --git a/RNS/Utilities/rnpath.py b/RNS/Utilities/rnpath.py index e86b2e2b..5b0a30db 100644 --- a/RNS/Utilities/rnpath.py +++ b/RNS/Utilities/rnpath.py @@ -59,7 +59,8 @@ def connect_remote(destination_hash, auth_identity, timeout, no_output = False, remote_identity = RNS.Identity.recall(destination_hash) def remote_link_closed(link): - if link.teardown_reason == RNS.Link.TIMEOUT: + if link.teardown_reason == RNS.Link.INITIATOR_CLOSED: return + elif link.teardown_reason == RNS.Link.TIMEOUT: if not no_output: print(output_rst_str, end="") print("The link timed out, exiting now") diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py index cba8928a..cb6ce3d6 100644 --- a/RNS/Utilities/rnstatus.py +++ b/RNS/Utilities/rnstatus.py @@ -81,7 +81,8 @@ def get_remote_status(destination_hash, include_lstats, identity, no_output=Fals remote_identity = RNS.Identity.recall(destination_hash) def remote_link_closed(link): - if link.teardown_reason == RNS.Link.TIMEOUT: + if link.teardown_reason == RNS.Link.INITIATOR_CLOSED: return + elif link.teardown_reason == RNS.Link.TIMEOUT: if not no_output: print("\r \r", end="") print("The link timed out, exiting now")