mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 17:05:16 -04:00
Revert to using wait_for_hs for ephemeral HS
Using `await_publication = True` blocks inside stem until the hidden service is published, which makes OnionShare appear to hang. This is a quick fix that reverts to using `wait_for_hs` for ephemeral hidden services (as well as non-ephemeral hidden services), which avoids blocking OnionShare.
This commit is contained in:
parent
41a30dd4e4
commit
9d5ba9b4f6
3 changed files with 6 additions and 8 deletions
|
@ -169,9 +169,8 @@ class OnionShareGui(QtGui.QWidget):
|
|||
|
||||
# wait for hs
|
||||
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)
|
||||
self.status_bar.showMessage(strings._('gui_starting_server3', True))
|
||||
self.app.hs.wait_for_hs(self.app.onion_host)
|
||||
|
||||
# done
|
||||
self.start_server_finished.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue