From 09291d6aeb4c1ede9c2be337f297b8c6e657f5ac Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 16 Apr 2018 17:28:48 -0700 Subject: [PATCH] contractcourt: ensure the closeObserver exits on quit --- contractcourt/chain_watcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contractcourt/chain_watcher.go b/contractcourt/chain_watcher.go index d974132a..6ee05962 100644 --- a/contractcourt/chain_watcher.go +++ b/contractcourt/chain_watcher.go @@ -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 } } }