mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-27 21:55:07 +03: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() {
|
if backoffNow() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
// Ephemeral or incoming connections don't reconnect.
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue