Skip to content

Commit

Permalink
fix: leaked close listener in startStreamProcess loop (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Dec 5, 2023
1 parent 74882fb commit 0c10ef6
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 0c10ef6

Please sign in to comment.