mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 22:53:37 +02:00
Merge pull request #6289 from yyforyongyu/fix-fee-service-panic
itest: check feeService against nil upon shutdown [skip ci]
This commit is contained in:
@@ -266,7 +266,11 @@ func (n *NetworkHarness) Stop() {
|
|||||||
close(n.lndErrorChan)
|
close(n.lndErrorChan)
|
||||||
n.cancel()
|
n.cancel()
|
||||||
|
|
||||||
n.feeService.stop()
|
// feeService may not be created. For instance, running a non-exist
|
||||||
|
// test case.
|
||||||
|
if n.feeService != nil {
|
||||||
|
n.feeService.stop()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// extraArgsEtcd returns extra args for configuring LND to use an external etcd
|
// extraArgsEtcd returns extra args for configuring LND to use an external etcd
|
||||||
|
Reference in New Issue
Block a user