prevent reconnections when initial connection fails.

This commit is contained in:
fiatjaf
2026-01-31 13:57:33 -03:00
parent ccb9641fb9
commit fb7de7f1aa

View File

@@ -157,6 +157,7 @@ export class AbstractRelay {
clearTimeout(connectionTimeoutHandle)
reject('connection failed')
this.connectionPromise = undefined
this.closedIntentionally = true // prevent reconnect attempts on initial connection failure
this.onclose?.()
this.handleHardClose('relay connection failed')
}