Refactor Onion to store all state for auto-start timer directly in the mode settings, and not in the Onion object itself

This commit is contained in:
Micah Lee 2019-12-08 12:51:30 -08:00
parent 5b6d986951
commit e7bd89c41d
3 changed files with 10 additions and 56 deletions

View file

@ -70,7 +70,7 @@ class OnionThread(QtCore.QThread):
try:
if self.mode.obtain_onion_early:
self.mode.app.start_onion_service(
self.mode.settings, await_publication=False, save_scheduled_key=True
self.mode.settings, await_publication=False
)
# wait for modules in thread to load, preventing a thread-related cx_Freeze crash
time.sleep(0.2)