Added exception handling to interface detach
This commit is contained in:
parent
778d6105c1
commit
4f561a8c0c
@ -2238,7 +2238,10 @@ class Transport:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
for interface in detachable_interfaces:
|
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
|
@staticmethod
|
||||||
def shared_connection_disappeared():
|
def shared_connection_disappeared():
|
||||||
|
Loading…
Reference in New Issue
Block a user