Permalink
Browse files

Fix shutdown when ngx_pagespeed is completely disabled.

Fixes #1120
  • Loading branch information...
oschaaf committed Feb 15, 2016
1 parent d959f01 commit f60c754d82c7d63835c00ec2c5203e540474c9b0
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ngx_pagespeed.cc
@@ -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

0 comments on commit f60c754

Please sign in to comment.