From 4ac7152f94c5735dcb4dd39726b904b09c445e5a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 5 Sep 2015 01:32:26 +0900 Subject: [PATCH] nghttpx: Fix build failure without mruby --- src/shrpx_downstream.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shrpx_downstream.cc b/src/shrpx_downstream.cc index 29eb5b3b..eefa99f2 100644 --- a/src/shrpx_downstream.cc +++ b/src/shrpx_downstream.cc @@ -166,11 +166,13 @@ Downstream::~Downstream() { ev_timer_stop(loop, &downstream_rtimer_); ev_timer_stop(loop, &downstream_wtimer_); +#ifdef HAVE_MRUBY auto handler = upstream_->get_client_handler(); auto worker = handler->get_worker(); auto mruby_ctx = worker->get_mruby_context(); mruby_ctx->delete_downstream(this); +#endif // HAVE_MRUBY } // DownstreamConnection may refer to this object. Delete it now