Skip to content

Commit

Permalink
fix redis kill failed (#858)
Browse files Browse the repository at this point in the history
Co-authored-by: noO0ob <[email protected]>
  • Loading branch information
noO0oOo0ob and noO0ob authored May 27, 2024
1 parent dd14861 commit 2130407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lyrebird/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lyrebird/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IVERSION = (3, 0, 1)
IVERSION = (3, 0, 2)
VERSION = ".".join(str(i) for i in IVERSION)
LYREBIRD = "Lyrebird " + VERSION

0 comments on commit 2130407

Please sign in to comment.