Ensure we always set the service id, so we can stop the right one (particularly when scheduling a share)

This commit is contained in:
Miguel Jacq 2019-11-29 18:40:45 +11:00
parent 981220d1ce
commit 29e60fcacf
2 changed files with 2 additions and 4 deletions

View file

@ -76,7 +76,7 @@ class OnionThread(QtCore.QThread):
time.sleep(0.2)
self.success_early.emit()
# Unregister the onion so we can use it in the next OnionThread
self.mode.app.onion.cleanup(False)
self.mode.app.stop_onion_service(self.mode.settings)
else:
self.mode.app.start_onion_service(
self.mode.settings, await_publication=True