[Pkg-anonymity-tools] [onionshare] 47/140: waits for hs to be ready in GUI too (#116)

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Sep 29 20:33:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository onionshare.

commit 6688ced698e68b66bdeb221944580f03aabbe942
Author: Micah Lee <micah at micahflee.com>
Date:   Fri Aug 29 14:35:25 2014 -0700

    waits for hs to be ready in GUI too (#116)
---
 onionshare_gui/onionshare_gui.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index f33d89d..459772a 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -92,8 +92,14 @@ class OnionShareGui(QtGui.QWidget):
 
         # prepare the files for sending in a new thread
         def finish_starting_server(self):
+            # prepare files to share
             web.set_file_info(self.file_selection.file_list.filenames)
             self.app.cleanup_filenames.append(web.zip_filename)
+
+            # wait for hs
+            self.app.wait_for_hs()
+
+            # done
             self.start_server_finished.emit()
 
         t = threading.Thread(target=finish_starting_server, kwargs={'self':self})

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git



More information about the Pkg-anonymity-tools mailing list