diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-28 17:40:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:40:43 -0400 |
commit | 678313b17677e012ba9a07aeca58af1aafbf4e8c (patch) | |
tree | e48e25b165a7d6d566095442448f2e36fa09c561 /tools/deno_tcp.ts | |
parent | 47c2f034e95696a47770d60aec1362501e7f330d (diff) |
BREAKING: Remove Deno.EOF, use null instead (#4953)
Diffstat (limited to 'tools/deno_tcp.ts')
-rw-r--r-- | tools/deno_tcp.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/deno_tcp.ts b/tools/deno_tcp.ts index 068c48a04..06907db90 100644 --- a/tools/deno_tcp.ts +++ b/tools/deno_tcp.ts @@ -13,7 +13,7 @@ async function handle(conn: Deno.Conn): Promise<void> { try { while (true) { const r = await conn.read(buffer); - if (r === Deno.EOF) { + if (r === null) { break; } await conn.write(response); |