mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-14 15:09:06 +02:00
Merge pull request #6892 from Crypt-iQ/iss6882_notifywhenonline_fix
server.go: add peerChan to peerConnectedListeners in NotifyWhenOnline
This commit is contained in:
commit
beb897d6ed
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user