From 039583d77e84600c7d50c3d94aa02f24f4c6d355 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 16:45:01 -0400 Subject: [PATCH] *Update dist --- dist/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/util.js b/dist/util.js index 483a14a..50471f6 100644 --- a/dist/util.js +++ b/dist/util.js @@ -83,12 +83,12 @@ export function createHash(data) { export async function setupStream(stream) { const existing = stream[RPC_PROTOCOL_SYMBOL]; if (existing) { - await existing._channel.ready; + await existing.ready; return existing; } const rpc = new RPC(stream); stream[RPC_PROTOCOL_SYMBOL] = rpc; - await existing.ready; + await rpc.ready; return rpc; } export async function maybeGetAsyncProperty(object) {