mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-02 06:36:14 -04:00
Added signal handler and interface detachment oon exit.
This commit is contained in:
parent
81cdb0b7e6
commit
3d4ac0126b
5 changed files with 33 additions and 3 deletions
|
@ -1422,6 +1422,12 @@ class Transport:
|
|||
else:
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def detach_interfaces():
|
||||
for interface in Transport.interfaces:
|
||||
interface.detach()
|
||||
|
||||
|
||||
@staticmethod
|
||||
def exit_handler():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue