Don't access self.hs when using --local-only in GUI

This commit is contained in:
Micah Lee 2015-12-04 13:19:21 -08:00
parent f4780813d6
commit 4cfffbf847

View File

@ -168,8 +168,8 @@ class OnionShareGui(QtGui.QWidget):
self.starting_server_step2.emit()
# wait for hs
if not self.app.hs.supports_ephemeral:
if not self.app.local_only:
if not self.app.local_only:
if not self.app.hs.supports_ephemeral:
self.status_bar.showMessage(strings._('gui_starting_server3', True))
self.app.hs.wait_for_hs(self.app.onion_host)