mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-11 09:30:30 +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()
|
||||
|
||||
def stop(self):
|
||||
self.daemon.shutdown()
|
||||
self.thread.join()
|
||||
if hasattr(self, 'daemon'):
|
||||
self.daemon.shutdown()
|
||||
if hasattr(self, 'thread'):
|
||||
self.thread.join()
|
||||
|
|
Loading…
Add table
Reference in a new issue