Compare commits
2 Commits
05c9a7aea7
...
7386b6de05
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 7386b6de05 | |
Derrick Hammer | 35c67e1c92 |
|
@ -82,7 +82,7 @@ export function createHash(data) {
|
|||
}
|
||||
export async function setupStream(stream) {
|
||||
const existing = stream[RPC_PROTOCOL_SYMBOL];
|
||||
if (!existing) {
|
||||
if (existing) {
|
||||
await existing._channel.ready;
|
||||
return existing;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue