mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-12 18:01:51 +00:00
Fix bug where ephemeral links would try to reconnect in a fast loop
Helps #1141, although not a complete solution.
This commit is contained in:
parent
d6fd305f12
commit
d1b849588f
1 changed files with 2 additions and 1 deletions
|
@ -359,8 +359,9 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
|
|||
if backoffNow() {
|
||||
continue
|
||||
}
|
||||
return
|
||||
}
|
||||
// Ephemeral or incoming connections don't reconnect.
|
||||
return
|
||||
}
|
||||
}()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue