Merge pull request #6892 from Crypt-iQ/iss6882_notifywhenonline_fix
server.go: add peerChan to peerConnectedListeners in NotifyWhenOnline
This commit is contained in:
2 files changed
+13
-1
No files matched your search
@@ -6,6 +6,12 @@
|
|||||||
(`POST /v1/graph/routes`)](https://github.com/lightningnetwork/lnd/pull/6926)
|
(`POST /v1/graph/routes`)](https://github.com/lightningnetwork/lnd/pull/6926)
|
||||||
to make it possible to specify `route_hints` over REST.
|
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)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
|
* Eugene Siegel
|
||||||
* Oliver Gugger
|
* Oliver Gugger
|
||||||
@@ -3195,7 +3195,13 @@ func (s *server) NotifyWhenOnline(peerKey [33]byte,
|
|||||||
select {
|
select {
|
||||||
case <-peer.ActiveSignal():
|
case <-peer.ActiveSignal():
|
||||||
case <-peer.QuitSignal():
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user