mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-22 06:54:20 +01:00
test: allow lightningNetworkWatcher to gracefully exit when ntfn pending
This commit is contained in:
@@ -397,7 +397,11 @@ func (l *lightningNode) lightningNetworkWatcher() {
|
||||
panic(fmt.Errorf("unable read update ntfn: %v", err))
|
||||
}
|
||||
|
||||
graphUpdates <- update
|
||||
select {
|
||||
case graphUpdates <- update:
|
||||
case <-l.quit:
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user