nghttpx: Fix compile error without --with-mruby

This commit is contained in:
Tatsuhiro Tsujikawa 2016-06-25 23:56:46 +09:00
parent aced5b3b6c
commit 0613a16c11
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,6 @@ namespace {
void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
spdylay_frame *frame, void *user_data) {
auto upstream = static_cast<SpdyUpstream *>(user_data);
auto handler = upstream->get_client_handler();
switch (type) {
case SPDYLAY_SYN_STREAM: {
@ -287,6 +286,7 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
downstream->set_request_state(Downstream::HEADER_COMPLETE);
#ifdef HAVE_MRUBY
auto handler = upstream->get_client_handler();
auto worker = handler->get_worker();
auto mruby_ctx = worker->get_mruby_context();