Properly handle errors for using stealth onion services in the GUI, instead of crashing in the background (#144)

This commit is contained in:
Micah Lee 2016-12-23 19:08:18 -08:00
parent 0512e5e84b
commit 5241d756bf
3 changed files with 11 additions and 2 deletions

View file

@ -176,6 +176,10 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.starting_server_error.emit(e.args[0])
return
except onionshare.onion.TorTooOld as e:
self.starting_server_error.emit(e.args[0])
return
t = threading.Thread(target=start_onion_service, kwargs={'self': self})
t.daemon = True
t.start()