mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-24 23:35:41 -04:00
Fixed potential daemon thread IO buffer deadlock on externally mediated shutdown signal
This commit is contained in:
parent
9e7641d2d3
commit
f030cf6f22
2 changed files with 16 additions and 9 deletions
|
@ -361,9 +361,14 @@ def phyparams():
|
|||
def panic():
|
||||
os._exit(255)
|
||||
|
||||
exit_called = False
|
||||
def exit():
|
||||
print("")
|
||||
sys.exit(0)
|
||||
global exit_called
|
||||
if not exit_called:
|
||||
exit_called = True
|
||||
print("")
|
||||
Reticulum.exit_handler()
|
||||
os._exit(0)
|
||||
|
||||
class Profiler:
|
||||
_ran = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue