From a036c1839fc591ea9a7a8c44c357e0d7d280c10e Mon Sep 17 00:00:00 2001 From: Kevin F Date: Fri, 16 Sep 2022 23:24:44 -0500 Subject: [PATCH] Added event for main loop --- src/onionrcommands/daemonlaunch/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/onionrcommands/daemonlaunch/__init__.py b/src/onionrcommands/daemonlaunch/__init__.py index 0471af92..d58dacda 100755 --- a/src/onionrcommands/daemonlaunch/__init__.py +++ b/src/onionrcommands/daemonlaunch/__init__.py @@ -85,10 +85,13 @@ def daemon(): try: while True: + # Mainly for things like repls + events.event('primary_loop', threaded=False) sleep(60) except KeyboardInterrupt: pass + cleanup.delete_run_files() if security_level >= 2: filenuke.nuke.clean_tree(identifyhome.identify_home())