Skip to content

Commit

Permalink
Add missing destroy call
Browse files Browse the repository at this point in the history
  • Loading branch information
synzen committed Aug 20, 2020
1 parent 393c6fd commit 6ccf965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structs/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ class Client extends EventEmitter {
handleKillMessage () {
this.state = STATES.EXITING
this.log.info('Received kill signal from sharding manager, closing MongoDB connection')
this.bot.destroy()
this.mongo.close((err) => {
if (err) {
this.log.error(err, 'Failed to close mongo connection on shard kill message')
Expand Down

0 comments on commit 6ccf965

Please sign in to comment.