diff --git a/lyrebird/manager.py b/lyrebird/manager.py index 7ce71727..3dcd2ebe 100644 --- a/lyrebird/manager.py +++ b/lyrebird/manager.py @@ -270,7 +270,8 @@ def signal_handler(signum, frame): application.stop_server() application.terminate_server() application.sync_manager.destory() - RedisManager.destory() + if application.config.get('enable_multiprocess', False): + RedisManager.destory() threading.Event().set() print('!!!Ctrl-C pressed. Lyrebird stop!!!') os._exit(0) diff --git a/lyrebird/version.py b/lyrebird/version.py index ff181263..b590eb46 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (3, 0, 1) +IVERSION = (3, 0, 2) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION