From 4f561a8c0c60db9c634d72234b4fb99ee7bc1252 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 16 Oct 2023 18:54:36 +0200 Subject: [PATCH] Added exception handling to interface detach --- RNS/Transport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 06e2f59..6e46eb9 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -2238,7 +2238,10 @@ class Transport: pass for interface in detachable_interfaces: - interface.detach() + try: + interface.detach() + except Exception as e: + RNS.log("An error occurred while detaching "+str(interface)+". The contained exception was: "+str(e), RNS.LOG_ERROR) @staticmethod def shared_connection_disappeared():