Skip to content

Commit

Permalink
removed queueMicrotask
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jun 8, 2023
1 parent a873359 commit 998e0cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/deno_transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ export class DenoTransport implements Transport {
}
this.pendingWrite = writeAll(this.conn, frame).then(() => {
this.pendingWrite = null;
queueMicrotask(() => {
this.maybeWriteFrame();
});
this.maybeWriteFrame();
}).then(() => {
if (this.options.debug) {
console.info(`< ${render(frame)}`);
Expand Down

0 comments on commit 998e0cc

Please sign in to comment.