Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 7386b6de05
*Update dist 2023-04-08 15:02:22 -04:00
Derrick Hammer 35c67e1c92
*Bug fix 2023-04-08 15:02:11 -04:00
2 changed files with 2 additions and 2 deletions

2
dist/util.js vendored
View File

@ -82,7 +82,7 @@ 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._channel.ready;
return existing; return existing;
} }

View File

@ -117,7 +117,7 @@ export function createHash(data: string): Buffer {
export async function setupStream(stream: any) { export async function setupStream(stream: any) {
const existing = stream[RPC_PROTOCOL_SYMBOL]; const existing = stream[RPC_PROTOCOL_SYMBOL];
if (!existing) { if (existing) {
await existing._channel.ready; await existing._channel.ready;
return existing; return existing;
} }