waits for hs to be ready in GUI too (#116)

This commit is contained in:
Micah Lee 2014-08-29 14:35:25 -07:00
parent 846b10b755
commit 6688ced698

View File

@ -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})