Merge pull request #203 in DNS/adguard-dns from fix/647 to master

* commit 'c6957bed64acd5b2265b8b94bb07f8bb77520084':
  - install: immediately schedule filters update procedure after installation is complete
This commit is contained in:
Andrey Meshkov 2019-04-23 20:15:12 +03:00
commit 4eb910c35e
1 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,8 @@ func handleInstallConfigure(w http.ResponseWriter, r *http.Request) {
return return
} }
go refreshFiltersIfNecessary(false)
// this needs to be done in a goroutine because Shutdown() is a blocking call, and it will block // this needs to be done in a goroutine because Shutdown() is a blocking call, and it will block
// until all requests are finished, and _we_ are inside a request right now, so it will block indefinitely // until all requests are finished, and _we_ are inside a request right now, so it will block indefinitely
if restartHTTP { if restartHTTP {