Skip to content

Commit

Permalink
fix: batch sending stops
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
luddd3 committed Dec 29, 2021
1 parent 4d60664 commit 6a5b589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChannelWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,10 @@ export default class ChannelWrapper extends EventEmitter {
// If we didn't send all the messages, send some more...
if (this._channelHasRoom && this._messages.length > 0) {
setImmediate(() => this._publishQueuedMessages(workerNumber));
} else {
this._working = false;
}

this._working = false;

/* istanbul ignore next */
} catch (err) {
this._working = false;
Expand Down

0 comments on commit 6a5b589

Please sign in to comment.