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; }