Skip to content

Commit

Permalink
fix: await stream close promises.
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-jb committed Nov 19, 2023
1 parent 6509cfb commit 9166c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/replicator/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class BootstrapReplicator extends Playable {
if (!reverseSync) {
await pipePromise
he.close()
stream.close()
await stream.close()
return
}

Expand All @@ -174,7 +174,7 @@ export class BootstrapReplicator extends Playable {
}

he.close()
stream.close()
await stream.close()
}
}

Expand Down

0 comments on commit 9166c8f

Please sign in to comment.