lnd/peer
Olaoluwa Osuntokun 325e844a96
peer: ensure the peer has been started before Disconnect can be called
In this commit, we make sure that all the `wg.Add(1)` calls succeed
before we attempt to wait on the shutdown of all the goroutines. Under
rare scheduling scenarios, if both `Start` and `Disconnect` are called
concurrently, then this internal race error can be hit, causing the
panic to occur.

Fixes https://github.com/lightningnetwork/lnd/issues/7853
2023-07-27 10:59:39 -07:00
..
brontide_test.go peer: retry enabling channels on ErrEnableInactiveChan 2023-01-18 03:46:16 +08:00
brontide.go peer: ensure the peer has been started before Disconnect can be called 2023-07-27 10:59:39 -07:00
interfaces.go htlcswitch+peer: CreateAndAddLink in switch, add messageSwitch to peer 2021-08-10 17:15:52 -04:00
log.go multi: remove peer.go, change all references to point to peer pkg 2020-07-06 19:16:07 -04:00
test_utils.go peer: update and use SyncMap in Brontide 2023-06-27 20:19:37 +08:00