Skip to content

Commit

Permalink
fix no client QUIT on shutdown when it is not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
DoobleD committed Dec 27, 2024
1 parent 0218938 commit e898b78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### [2.0.8] - 2024-11-08

- fix missing error handlers on pi-watch and pi-karma redis clients [#45](https://github.com/haraka/haraka-plugin-redis/issues/45)
- fix no client QUIT on shutdown when it is not connected

### [2.0.7] - 2024-04-21

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ exports.init_redis_plugin = function (next, server) {
exports.shutdown = function () {
if (this.db) this.db.quit()

if (server && server.notes && server.notes.redis) {
if (server && server.notes && server.notes.redis && server.notes.redis.isOpen) {
server.notes.redis.quit()
}
}
Expand Down

0 comments on commit e898b78

Please sign in to comment.