Skip to content

Commit

Permalink
fix: remove close listener before next startStreamProcess loop
Browse files Browse the repository at this point in the history
Ref #1038
  • Loading branch information
robertsLando committed Dec 5, 2023
1 parent 74882fb commit 9585927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2260,9 +2260,9 @@ export default class MqttClient extends TypedEventEmitter<MqttClientEventCallbac
break
}
}
this.removeListener('close', remove)
if (allProcessed) {
clearStoreProcessing()
this.removeListener('close', remove)
this._invokeAllStoreProcessingQueue()
this.emit('connect', packet)
} else {
Expand Down

0 comments on commit 9585927

Please sign in to comment.