mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 16:51:06 +02:00
multi: move several wait group done calls to defer statements
This commit is contained in:
committed by
Oliver Gugger
parent
27849d3020
commit
10d94f99c0
@@ -1836,6 +1836,8 @@ out:
|
||||
}
|
||||
}
|
||||
|
||||
// Avoid an exit deadlock by ensuring WaitGroups are decremented before
|
||||
// disconnect.
|
||||
p.wg.Done()
|
||||
|
||||
p.Disconnect(exitErr)
|
||||
|
||||
Reference in New Issue
Block a user