diff --git a/RNS/__init__.py b/RNS/__init__.py index 9845264..6581fce 100755 --- a/RNS/__init__.py +++ b/RNS/__init__.py @@ -382,7 +382,7 @@ def exit(code=0): if not exit_called: exit_called = True Reticulum.exit_handler() - os._exit(code) + sys.exit(code) class Profiler: _ran = False @@ -541,4 +541,4 @@ class Profiler: if tag["super"] == None: print_results_recursive(tag, results) -profile = Profiler.get_profiler \ No newline at end of file +profile = Profiler.get_profiler