Skip to content

Commit

Permalink
fix(cluster): stop subscriber when disconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Oct 14, 2018
1 parent fb3eb76 commit fb27b66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cluster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ class Cluster extends EventEmitter {
this.slotsTimer = null
}

this.subscriber.stop()

const Promise = PromiseContainer.get()
if (status === 'wait') {
const ret = asCallback(Promise.resolve('OK'), callback)
Expand Down

0 comments on commit fb27b66

Please sign in to comment.