mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 15:35:13 -04:00
Fix CLI tests, and also fix bug related to autostop_sharing that the tests found
This commit is contained in:
parent
598db21dcd
commit
87918c5d89
8 changed files with 60 additions and 69 deletions
|
@ -61,7 +61,7 @@ class OnionThread(QtCore.QThread):
|
|||
try:
|
||||
if self.mode.obtain_onion_early:
|
||||
self.mode.app.start_onion_service(
|
||||
await_publication=False, save_scheduled_key=True
|
||||
self.mode.settings, await_publication=False, save_scheduled_key=True
|
||||
)
|
||||
# wait for modules in thread to load, preventing a thread-related cx_Freeze crash
|
||||
time.sleep(0.2)
|
||||
|
@ -69,7 +69,9 @@ class OnionThread(QtCore.QThread):
|
|||
# Unregister the onion so we can use it in the next OnionThread
|
||||
self.mode.app.onion.cleanup(False)
|
||||
else:
|
||||
self.mode.app.start_onion_service(await_publication=True)
|
||||
self.mode.app.start_onion_service(
|
||||
self.mode.settings, await_publication=True
|
||||
)
|
||||
# wait for modules in thread to load, preventing a thread-related cx_Freeze crash
|
||||
time.sleep(0.2)
|
||||
# start onionshare http service in new thread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue