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 286573bda5
commit 6eed7258a7
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
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()