Compare commits
No commits in common. "039583d77e84600c7d50c3d94aa02f24f4c6d355" and "7386b6de0550de0427ea0067eb457c5eb9159edf" have entirely different histories.
039583d77e
...
7386b6de05
|
@ -83,12 +83,12 @@ export function createHash(data) {
|
|||
export async function setupStream(stream) {
|
||||
const existing = stream[RPC_PROTOCOL_SYMBOL];
|
||||
if (existing) {
|
||||
await existing.ready;
|
||||
await existing._channel.ready;
|
||||
return existing;
|
||||
}
|
||||
const rpc = new RPC(stream);
|
||||
stream[RPC_PROTOCOL_SYMBOL] = rpc;
|
||||
await rpc.ready;
|
||||
await existing.ready;
|
||||
return rpc;
|
||||
}
|
||||
export async function maybeGetAsyncProperty(object) {
|
||||
|
|
|
@ -118,14 +118,14 @@ export function createHash(data: string): Buffer {
|
|||
export async function setupStream(stream: any) {
|
||||
const existing = stream[RPC_PROTOCOL_SYMBOL];
|
||||
if (existing) {
|
||||
await existing.ready;
|
||||
await existing._channel.ready;
|
||||
return existing;
|
||||
}
|
||||
|
||||
const rpc = new RPC(stream);
|
||||
stream[RPC_PROTOCOL_SYMBOL] = rpc;
|
||||
|
||||
await rpc.ready;
|
||||
await existing.ready;
|
||||
|
||||
return rpc;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue