Dont handle notifs during shutdown

This commit is contained in:
jholdstock 2020-08-25 15:14:52 +01:00 committed by David Hill
parent c83a2a0085
commit 5c41761f1e

View File

@ -298,6 +298,7 @@ func connectNotifier(dcrdWithNotifs rpc.DcrdConnect) error {
// notifier is closed. // notifier is closed.
select { select {
case <-ctx.Done(): case <-ctx.Done():
dcrdWithNotifs.Close()
return nil return nil
case <-notifierClosed: case <-notifierClosed:
log.Warnf("dcrd notifier closed") log.Warnf("dcrd notifier closed")