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
1 changed files with 4 additions and 1 deletions

View File

@ -2238,7 +2238,10 @@ class Transport:
pass
for interface in detachable_interfaces:
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():