nghttpx: Fix build failure without mruby

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-05 01:32:26 +09:00
parent d348ea3384
commit 4ac7152f94
1 changed files with 2 additions and 0 deletions

View File

@ -166,11 +166,13 @@ Downstream::~Downstream() {
ev_timer_stop(loop, &downstream_rtimer_); ev_timer_stop(loop, &downstream_rtimer_);
ev_timer_stop(loop, &downstream_wtimer_); ev_timer_stop(loop, &downstream_wtimer_);
#ifdef HAVE_MRUBY
auto handler = upstream_->get_client_handler(); auto handler = upstream_->get_client_handler();
auto worker = handler->get_worker(); auto worker = handler->get_worker();
auto mruby_ctx = worker->get_mruby_context(); auto mruby_ctx = worker->get_mruby_context();
mruby_ctx->delete_downstream(this); mruby_ctx->delete_downstream(this);
#endif // HAVE_MRUBY
} }
// DownstreamConnection may refer to this object. Delete it now // DownstreamConnection may refer to this object. Delete it now