Pull request 2012: 6158-fix-context-filters

Updates #6158.

Squashed commit of the following:

commit 7d1661c5d7824cd8cd988f8b1d2b1a600aad00ca
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Tue Sep 12 17:26:43 2023 +0300

    home: fix context filters
This commit is contained in:
Stanislav Chzhen 2023-09-12 17:46:14 +03:00
parent fb332dfc2a
commit 5c6b3ace4a
1 changed files with 3 additions and 1 deletions

View File

@ -494,7 +494,9 @@ func closeDNSServer() {
Context.dnsServer = nil
}
Context.filters.Close()
if Context.filters != nil {
Context.filters.Close()
}
if Context.stats != nil {
err := Context.stats.Close()