lnwallet/sigpool: exit SubmitSignBatch on quit

This commit is contained in:
Johan T. Halseth 2018-02-01 09:32:57 -05:00
parent 12d3327833
commit 9f2ec87ed6
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -259,6 +259,8 @@ func (s *sigPool) SubmitSignBatch(signJobs []signJob) {
case s.signJobs <- job: case s.signJobs <- job:
case <-job.cancel: case <-job.cancel:
// TODO(roasbeef): return error? // TODO(roasbeef): return error?
case <-s.quit:
return
} }
} }
} }