Use setTimeout instead of queueMicrotask

This commit is contained in:
Alex Dima 2021-11-22 15:53:24 +01:00
parent d632c770b9
commit d27ef51905
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9

View file

@ -368,7 +368,7 @@ class ProtocolWriter {
private _writeSoon(header: VSBuffer, data: VSBuffer): void {
if (this._bufferAdd(header, data)) {
queueMicrotask(() => {
setTimeout(() => {
this._writeNow();
});
}