Skip to content

Commit fb27b66

Browse files
committed
fix(cluster): stop subscriber when disconnecting
1 parent fb3eb76 commit fb27b66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/cluster/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ class Cluster extends EventEmitter {
253253
this.slotsTimer = null
254254
}
255255

256+
this.subscriber.stop()
257+
256258
const Promise = PromiseContainer.get()
257259
if (status === 'wait') {
258260
const ret = asCallback(Promise.resolve('OK'), callback)

0 commit comments

Comments
 (0)