From 9f2ec87ed6211cf725e3252a6438d909966159e4 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 1 Feb 2018 09:32:57 -0500 Subject: [PATCH] lnwallet/sigpool: exit SubmitSignBatch on quit --- lnwallet/sigpool.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/sigpool.go b/lnwallet/sigpool.go index 2354ca4e..1e8cf3a6 100644 --- a/lnwallet/sigpool.go +++ b/lnwallet/sigpool.go @@ -259,6 +259,8 @@ func (s *sigPool) SubmitSignBatch(signJobs []signJob) { case s.signJobs <- job: case <-job.cancel: // TODO(roasbeef): return error? + case <-s.quit: + return } } }