diff --git a/docs/release-notes/release-notes-0.15.2.md b/docs/release-notes/release-notes-0.15.2.md index 8cbc9802b..370bae0d7 100644 --- a/docs/release-notes/release-notes-0.15.2.md +++ b/docs/release-notes/release-notes-0.15.2.md @@ -6,6 +6,12 @@ (`POST /v1/graph/routes`)](https://github.com/lightningnetwork/lnd/pull/6926) to make it possible to specify `route_hints` over REST. +## Bug Fixes + +* [A bug where LND wouldn't send a ChannelUpdate during a channel open has + been fixed.](https://github.com/lightningnetwork/lnd/pull/6892) + # Contributors (Alphabetical Order) +* Eugene Siegel * Oliver Gugger diff --git a/server.go b/server.go index ad34055d5..3d4a3d640 100644 --- a/server.go +++ b/server.go @@ -3195,7 +3195,13 @@ func (s *server) NotifyWhenOnline(peerKey [33]byte, select { case <-peer.ActiveSignal(): case <-peer.QuitSignal(): - // The peer quit so we'll just return. + // The peer quit, so we'll add the channel to the slice + // and return. + s.mu.Lock() + s.peerConnectedListeners[pubStr] = append( + s.peerConnectedListeners[pubStr], peerChan, + ) + s.mu.Unlock() return }