mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-11 17:40:29 +00:00
More graceful CallbackServer shutdown
This commit is contained in:
parent
d88d73c7f1
commit
f8d79f06e3
1 changed files with 4 additions and 2 deletions
|
@ -20,5 +20,7 @@ class CallbackServer(object):
|
||||||
self.thread.start()
|
self.thread.start()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.daemon.shutdown()
|
if hasattr(self, 'daemon'):
|
||||||
self.thread.join()
|
self.daemon.shutdown()
|
||||||
|
if hasattr(self, 'thread'):
|
||||||
|
self.thread.join()
|
||||||
|
|
Loading…
Add table
Reference in a new issue