contractcourt: ensure the closeObserver exits on quit
This commit is contained in:
1 file changed
+1
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user