mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-20 13:34:32 +01:00
server: defer ticker stop to avoid goroutine leak
This commit is contained in:
parent
1ab5cc3ae8
commit
55d983dee7
1 changed files with 1 additions and 0 deletions
|
@ -3819,6 +3819,7 @@ func (s *server) connectToPersistentPeer(pubKeyStr string) {
|
|||
// creation of the connection requests for those.
|
||||
go func() {
|
||||
ticker := time.NewTicker(multiAddrConnectionStagger)
|
||||
defer ticker.Stop()
|
||||
|
||||
for _, addr := range addrMap {
|
||||
// Send the persistent connection request to the
|
||||
|
|
Loading…
Add table
Reference in a new issue