- install: immediately schedule filters update procedure after installation is complete

This commit is contained in:
Simon Zolin 2019-04-23 19:56:21 +03:00
parent 528c1a72ca
commit c6957bed64
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 {