Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed May 28, 2024
1 parent a415d9a commit 4fa0b15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/config/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ let stack
const exit = process.exit
process.exit = async code => {
stack = new Error().stack.replace(/.*\n/, "\n")
if (typeof redis === "object") {
if (typeof redis === "object" && redis.process) {
await Bot.sleep(5000, redis.save())
redis.process?.kill()
redis.process.kill()
}
exit(code)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1"
"eslint-plugin-promise": "^6.2.0"
},
"imports": {
"#miao": "./plugins/miao-plugin/components/index.js",
Expand Down

0 comments on commit 4fa0b15

Please sign in to comment.