Skip to content

Commit d1b8495

Browse files
committed
Fix bug where ephemeral links would try to reconnect in a fast loop
Helps #1141, although not a complete solution.
1 parent d6fd305 commit d1b8495

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/link.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,9 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
359359
if backoffNow() {
360360
continue
361361
}
362-
return
363362
}
363+
// Ephemeral or incoming connections don't reconnect.
364+
return
364365
}
365366
}()
366367
})

0 commit comments

Comments
 (0)