Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix shutdown when ngx_pagespeed is completely disabled.
Fixes #1120
  • Loading branch information
oschaaf committed Feb 15, 2016
1 parent d959f01 commit f60c754
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ngx_pagespeed.cc
Expand Up @@ -3079,7 +3079,9 @@ void ps_exit_child_process(ngx_cycle_t* cycle) {
ps_main_conf_t* cfg_m = static_cast<ps_main_conf_t*>(
ngx_http_cycle_get_module_main_conf(cycle, ngx_pagespeed));
NgxBaseFetch::Terminate();
cfg_m->driver_factory->ShutDown();
if (cfg_m->driver_factory != NULL) {
cfg_m->driver_factory->ShutDown();
}
}

// Called when nginx forks worker processes. No threads should be started
Expand Down

0 comments on commit f60c754

Please sign in to comment.