Graceful shutdown for modules and locale check for the server.

This commit is contained in:
grossmj committed 2014-04-24 15:59:34 -06:00
1 parent 9be5625c38
commit 7ebd451dda
4 files changed
+52 -6

No files matched your search

+2 -1
View File
@@ -224,7 +224,8 @@ class Server(object):
# terminate all modules
for module in self._modules:
#module.join(timeout=1)
# if not sys.platform.startswith("win"):
# module.join(timeout=0.5)
if module.is_alive():
log.info("terminating {}".format(module.name))
module.terminate()