Skip to content

Commit

Permalink
Merge pull request #4153 from Tyriar/microtask_fix
Browse files Browse the repository at this point in the history
Fix repetitive microtask problem
  • Loading branch information
Tyriar authored Sep 27, 2022
2 parents c6df208 + 25b69e5 commit 66675ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/input/WriteBuffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class WriteBuffer {
this._callbacks = this._callbacks.slice(this._bufferOffset);
this._bufferOffset = 0;
}
queueMicrotask(() => this._innerWrite());
setTimeout(() => this._innerWrite());
} else {
this._writeBuffer.length = 0;
this._callbacks.length = 0;
Expand Down

0 comments on commit 66675ef

Please sign in to comment.