itest: check feeService against nil upon shutdown [skip ci]

This commit is contained in:
yyforyongyu committed 2022-02-22 13:16:06 +08:00
1 parent 4df7dbdc58
commit e4d9551a6a
1 file changed
+5 -1
+5 -1
View File
@@ -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