contractcourt: ensure the closeObserver exits on quit
This commit is contained in:
parent
f23848cac0
commit
09291d6aeb
@ -381,6 +381,7 @@ func (c *chainWatcher) closeObserver(spendNtfn *chainntnfs.SpendEvent) {
|
|||||||
|
|
||||||
// The chainWatcher has been signalled to exit, so we'll do so now.
|
// The chainWatcher has been signalled to exit, so we'll do so now.
|
||||||
case <-c.quit:
|
case <-c.quit:
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user