[Pkg-anonymity-tools] [onionshare] 49/140: can't stop a server before it has finished starting

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 0a28ad45384cebe1c623bfb25601215e0a50ef54
Author: Micah Lee <micah at micahflee.com>
Date:   Fri Aug 29 15:50:19 2014 -0700

    can't stop a server before it has finished starting
---
 onionshare_gui/server_status.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py
index 950d388..00e5a4b 100644
--- a/onionshare_gui/server_status.py
+++ b/onionshare_gui/server_status.py
@@ -83,9 +83,12 @@ class ServerStatus(QtGui.QVBoxLayout):
             if self.status == self.STATUS_STOPPED:
                 self.start_server_button.setEnabled(True)
                 self.stop_server_button.setEnabled(False)
-            else:
+            elif self.status == self.STATUS_STARTED:
                 self.start_server_button.setEnabled(False)
                 self.stop_server_button.setEnabled(True)
+            else:
+                self.start_server_button.setEnabled(False)
+                self.stop_server_button.setEnabled(False)
 
     def start_server(self):
         self.status = self.STATUS_WORKING

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