mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
Add comment
This commit is contained in:
parent
30331e8f62
commit
b5c9af9e9c
@ -317,7 +317,7 @@ func (conn *Conn) GetKey() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (conn *Conn) reconnectLoopWithRetry() {
|
func (conn *Conn) reconnectLoopWithRetry() {
|
||||||
// wait for the initial connection to be established
|
// give chance to the peer to establish the initial connection
|
||||||
select {
|
select {
|
||||||
case <-conn.ctx.Done():
|
case <-conn.ctx.Done():
|
||||||
case <-time.After(3 * time.Second):
|
case <-time.After(3 * time.Second):
|
||||||
|
Loading…
Reference in New Issue
Block a user