mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
fix(epdisc): exit create agent loop on success
Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
This commit is contained in:

committed by
Steffen Vogel

parent
7fad7fd7e8
commit
0fb041dedb
@@ -307,6 +307,8 @@ func (p *Peer) createAgentWithBackoff() {
|
||||
p.logger.Error("Failed to create agent",
|
||||
zap.Error(err),
|
||||
zap.Duration("after", d))
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user