mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +02:00
Fix reference check
This commit is contained in:
parent
894d68adf2
commit
f247a7be46
@ -324,6 +324,7 @@ func (conn *Conn) reconnectLoopWithRetry() {
|
|||||||
case <-time.After(3 * time.Second):
|
case <-time.After(3 * time.Second):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
L:
|
||||||
for {
|
for {
|
||||||
bo := backoff.WithContext(&backoff.ExponentialBackOff{
|
bo := backoff.WithContext(&backoff.ExponentialBackOff{
|
||||||
InitialInterval: 800 * time.Millisecond,
|
InitialInterval: 800 * time.Millisecond,
|
||||||
@ -340,7 +341,6 @@ func (conn *Conn) reconnectLoopWithRetry() {
|
|||||||
|
|
||||||
<-ticker.C // consume the initial tick what is happening right after the ticker has been created
|
<-ticker.C // consume the initial tick what is happening right after the ticker has been created
|
||||||
|
|
||||||
L:
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case t := <-ticker.C:
|
case t := <-ticker.C:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user