diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-05-07 12:29:52 +0200 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-05-07 12:29:52 +0200 |
commit | e5caf489f037c21e2bc43fd7cdad020942e86589 (patch) | |
tree | fa062f7cd75dafcf7f079464b7e75dec65856df6 /gitautodeploy/gitautodeploy.py | |
parent | e614d788fa92718a704efc64bea104aa0be8927a (diff) | |
download | Git-Auto-Deploy-e5caf489f037c21e2bc43fd7cdad020942e86589.zip Git-Auto-Deploy-e5caf489f037c21e2bc43fd7cdad020942e86589.tar.gz Git-Auto-Deploy-e5caf489f037c21e2bc43fd7cdad020942e86589.tar.bz2 |
Fixed issue with keybaord interrupt
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r-- | gitautodeploy/gitautodeploy.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py index a9a5463..5341f52 100644 --- a/gitautodeploy/gitautodeploy.py +++ b/gitautodeploy/gitautodeploy.py @@ -355,11 +355,10 @@ class GitAutoDeploy(object): self.stop() self.exit() - def stop(self): - if self._server is not None: - self._server.shutdown() - self._server.socket.close() + if self._server is None: + return + self._server.socket.close() def signal_handler(self, signum, frame): import logging @@ -379,7 +378,6 @@ class GitAutoDeploy(object): self.exit() - def main(): import signal from gitautodeploy import GitAutoDeploy |