contractcourt: ensure the closeObserver exits on quit

This commit is contained in:
Olaoluwa Osuntokun 2018-04-16 17:28:48 -07:00
parent f23848cac0
commit 09291d6aeb
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -381,6 +381,7 @@ func (c *chainWatcher) closeObserver(spendNtfn *chainntnfs.SpendEvent) {
// The chainWatcher has been signalled to exit, so we'll do so now.
case <-c.quit:
return
}
}
}