*Update dist

This commit is contained in:
Derrick Hammer 2023-04-08 16:45:01 -04:00
parent a7e0fbd190
commit 039583d77e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

4
dist/util.js vendored
View File

@ -83,12 +83,12 @@ export function createHash(data) {
export async function setupStream(stream) { export async function setupStream(stream) {
const existing = stream[RPC_PROTOCOL_SYMBOL]; const existing = stream[RPC_PROTOCOL_SYMBOL];
if (existing) { if (existing) {
await existing._channel.ready; await existing.ready;
return existing; return existing;
} }
const rpc = new RPC(stream); const rpc = new RPC(stream);
stream[RPC_PROTOCOL_SYMBOL] = rpc; stream[RPC_PROTOCOL_SYMBOL] = rpc;
await existing.ready; await rpc.ready;
return rpc; return rpc;
} }
export async function maybeGetAsyncProperty(object) { export async function maybeGetAsyncProperty(object) {