diff --git a/packages/core/src/lib/stream_manager/stream_manager.ts b/packages/core/src/lib/stream_manager/stream_manager.ts index ed3c40fd5d..56e5834e86 100644 --- a/packages/core/src/lib/stream_manager/stream_manager.ts +++ b/packages/core/src/lib/stream_manager/stream_manager.ts @@ -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): void => {