summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/events.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2017-01-04 22:50:52 +0100
committerOliver Poignant <oliver@poignant.se>2017-01-04 22:50:52 +0100
commit647e2bf9586e90bdd48eeb4f0a42c1211badaa11 (patch)
tree56edd5cb9669065e76efcc6dd8d450ba8ca26c12 /gitautodeploy/events.py
parent56d76f87774c2d0ef6b6afa7895f7ce81b3ee6bb (diff)
downloadGit-Auto-Deploy-647e2bf9586e90bdd48eeb4f0a42c1211badaa11.zip
Git-Auto-Deploy-647e2bf9586e90bdd48eeb4f0a42c1211badaa11.tar.gz
Git-Auto-Deploy-647e2bf9586e90bdd48eeb4f0a42c1211badaa11.tar.bz2
Bugfixes and version bump
Diffstat (limited to 'gitautodeploy/events.py')
-rw-r--r--gitautodeploy/events.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gitautodeploy/events.py b/gitautodeploy/events.py
index 5e177a0..3a86700 100644
--- a/gitautodeploy/events.py
+++ b/gitautodeploy/events.py
@@ -100,10 +100,11 @@ class StartupEvent(SystemEvent):
def __init__(self, http_address=None, http_port=None, ws_address=None, ws_port=None):
self.http_address = http_address
self.http_port = http_port
- self.http_started = False
+ self.http_started = None
self.ws_address = ws_address
self.ws_port = ws_port
- self.ws_started = False
+ self.ws_started = None
+ self.waiting = True
super(StartupEvent, self).__init__()
def __repr__(self):
@@ -130,9 +131,11 @@ class StartupEvent(SystemEvent):
self.validate_success()
def validate_success(self):
- if self.http_started and self.ws_started:
+ if self.http_started is not False and self.ws_started is not False:
+ self.set_waiting(False)
self.set_success(True)
+
class EventStore(object):
def __init__(self):