From 35c67e1c928cc6640d8ad12cfba8a354fbf8257c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 15:02:11 -0400 Subject: [PATCH] *Bug fix --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 6f44563..20a3427 100644 --- a/src/util.ts +++ b/src/util.ts @@ -117,7 +117,7 @@ export function createHash(data: string): Buffer { export async function setupStream(stream: any) { const existing = stream[RPC_PROTOCOL_SYMBOL]; - if (!existing) { + if (existing) { await existing._channel.ready; return existing; }