nghttpx: Fix crash without mruby script

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-05 01:20:32 +09:00
parent 21e1af2ae7
commit b4709b9e8c
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ int MRubyContext::run_on_response_proc(Downstream *downstream) {
}
void MRubyContext::delete_downstream(Downstream *downstream) {
if (!mrb_) {
return;
}
delete_downstream_from_module(mrb_, downstream);
}