Added exception handling to interface detach

This commit is contained in:
Mark Qvist 2023-10-16 18:54:36 +02:00
parent 778d6105c1
commit 4f561a8c0c

View File

@ -2238,7 +2238,10 @@ class Transport:
pass pass
for interface in detachable_interfaces: for interface in detachable_interfaces:
try:
interface.detach() 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 @staticmethod
def shared_connection_disappeared(): def shared_connection_disappeared():