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

Commit f60c754

Browse files
committed
Fix shutdown when ngx_pagespeed is completely disabled.
Fixes #1120
1 parent d959f01 commit f60c754

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ngx_pagespeed.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3079,7 +3079,9 @@ void ps_exit_child_process(ngx_cycle_t* cycle) {
30793079
ps_main_conf_t* cfg_m = static_cast<ps_main_conf_t*>(
30803080
ngx_http_cycle_get_module_main_conf(cycle, ngx_pagespeed));
30813081
NgxBaseFetch::Terminate();
3082-
cfg_m->driver_factory->ShutDown();
3082+
if (cfg_m->driver_factory != NULL) {
3083+
cfg_m->driver_factory->ShutDown();
3084+
}
30833085
}
30843086

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

0 commit comments

Comments
 (0)