diff --git a/background/background.go b/background/background.go index 05e5ecf..525c229 100644 --- a/background/background.go +++ b/background/background.go @@ -298,6 +298,7 @@ func connectNotifier(dcrdWithNotifs rpc.DcrdConnect) error { // notifier is closed. select { case <-ctx.Done(): + dcrdWithNotifs.Close() return nil case <-notifierClosed: log.Warnf("dcrd notifier closed")