[Pkg-anonymity-tools] [onionshare] 88/140: don't try stopping the web app if it hasn't started

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Sep 29 20:33:51 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 3c071ce50054cd9ac172c8a7f9854c1bdf2149b0
Author: Micah Lee <micah at micahflee.com>
Date:   Wed Sep 3 17:56:10 2014 -0700

    don't try stopping the web app if it hasn't started
---
 onionshare_gui/onionshare_gui.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 395c442..e0fa319 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -138,7 +138,8 @@ class OnionShareGui(QtGui.QWidget):
         t.start()
 
     def stop_server(self):
-        web.stop(self.app.port)
+        if self.server_status.status == self.server_status.STATUS_STARTED:
+            web.stop(self.app.port)
         self.app.cleanup()
         self.stop_server_finished.emit()
 

-- 
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