diff --git a/src/shrpx_mruby.cc b/src/shrpx_mruby.cc index 79ba148a..aadca674 100644 --- a/src/shrpx_mruby.cc +++ b/src/shrpx_mruby.cc @@ -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); }