summaryrefslogtreecommitdiff
path: root/bufio.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bufio.ts')
-rw-r--r--bufio.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/bufio.ts b/bufio.ts
index 819c610f9..a1f673653 100644
--- a/bufio.ts
+++ b/bufio.ts
@@ -425,7 +425,7 @@ export class BufWriter implements Writer {
} else {
n = copyBytes(this.buf, p, this.n);
this.n += n;
- this.flush();
+ await this.flush();
}
nn += n;
p = p.subarray(n);