mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-13 08:45:49 -04:00
Fix exit method to use sys.exit for proper cleanup
Change RNS.__init__.py exit method from os._exit to sys.exit to allow proper cleanup and exception handling. Keep panic method using os._exit for immediate termination in unrecoverable scenarios.
This commit is contained in:
parent
799bcfc7aa
commit
1db7ff42c5
1 changed files with 2 additions and 2 deletions
|
@ -382,7 +382,7 @@ def exit(code=0):
|
||||||
if not exit_called:
|
if not exit_called:
|
||||||
exit_called = True
|
exit_called = True
|
||||||
Reticulum.exit_handler()
|
Reticulum.exit_handler()
|
||||||
os._exit(code)
|
sys.exit(code)
|
||||||
|
|
||||||
class Profiler:
|
class Profiler:
|
||||||
_ran = False
|
_ran = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue