We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 479cca1 commit cdfb408Copy full SHA for cdfb408
packages/libp2p/src/connection-manager/dial-queue.ts
@@ -338,8 +338,10 @@ export class DialQueue {
338
if (existingConnection?.status === 'open' && (existingConnection?.limits == null || conn?.limits != null)) {
339
this.log('already connected to %a', existingConnection.remoteAddr)
340
options?.onProgress?.(new CustomProgressEvent('dial-queue:already-connected'))
341
+
342
this.log('closing duplicate connection to %p', remotePeer)
343
await conn.close()
344
345
return existingConnection
346
}
347
0 commit comments