Skip to content

Commit fb27b66

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/cluster/index.ts

+2
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)