Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Sep 30, 2024
1 parent c2e277c commit d79df71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/lib/stream_manager/stream_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,13 @@ export class StreamManager {
try {
this.ongoingCreation.add(peerId);
await this.createStream(peer);
} catch (error) {
this.log.error(`Failed to createStreamWithLock:`, error);
} finally {
this.ongoingCreation.delete(peerId);
}

return;
}

private handlePeerUpdateStreamPool = (evt: CustomEvent<PeerUpdate>): void => {
Expand Down

0 comments on commit d79df71

Please sign in to comment.