mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-25 15:55:24 -04:00
Fixed potential EPOLL hang on interface failure
This commit is contained in:
parent
c0d7f42f17
commit
fad1d4972c
2 changed files with 11 additions and 5 deletions
|
@ -254,6 +254,9 @@ class LocalClientInterface(Interface):
|
|||
if self.is_connected_to_shared_instance and not self.detached:
|
||||
RNS.log("Socket for "+str(self)+" was closed, attempting to reconnect...", RNS.LOG_WARNING)
|
||||
RNS.Transport.shared_connection_disappeared()
|
||||
# TODO: Potentially run this in a thread, but since if we get here,
|
||||
# there's no other connectivity left to block anyway, it might be
|
||||
# unnecessary.
|
||||
self.reconnect()
|
||||
else:
|
||||
self.teardown(nowarning=True)
|
||||
|
@ -276,6 +279,9 @@ class LocalClientInterface(Interface):
|
|||
if self.is_connected_to_shared_instance and not self.detached:
|
||||
RNS.log("Socket for "+str(self)+" was closed, attempting to reconnect...", RNS.LOG_WARNING)
|
||||
RNS.Transport.shared_connection_disappeared()
|
||||
# TODO: Potentially run this in a thread, but since if we get here,
|
||||
# there's no other connectivity left to block anyway, it might be
|
||||
# unnecessary.
|
||||
self.reconnect()
|
||||
else:
|
||||
self.teardown(nowarning=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue