Skip to content

Commit

Permalink
Merge pull request #6289 from yyforyongyu/fix-fee-service-panic
Browse files Browse the repository at this point in the history
itest: check feeService against nil upon shutdown [skip ci]
  • Loading branch information
guggero authored Feb 22, 2022
2 parents 4df7dbd + e4d9551 commit 0db2c6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lntest/harness_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,11 @@ func (n *NetworkHarness) Stop() {
close(n.lndErrorChan)
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
Expand Down

0 comments on commit 0db2c6a

Please sign in to comment.