Fix repetitive microtask problem

See #4145
This commit is contained in:
Daniel Imms
2022-09-27 06:43:07 -07:00
parent 37c722d556
commit 25b69e5ed0
+1 -1
View File
@@ -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;