diff --git a/src/shrpx_listen_handler.cc b/src/shrpx_listen_handler.cc index 27916656..70cf3f4c 100644 --- a/src/shrpx_listen_handler.cc +++ b/src/shrpx_listen_handler.cc @@ -55,8 +55,8 @@ ListenHandler::ListenHandler(event_base *evbase, SSL_CTX *sv_ssl_ctx, evlistener4_(nullptr), evlistener6_(nullptr), worker_stat_(util::make_unique()), - worker_round_robin_cnt_(0), - num_worker_shutdown_(0) + num_worker_shutdown_(0), + worker_round_robin_cnt_(0) {} ListenHandler::~ListenHandler() diff --git a/src/shrpx_listen_handler.h b/src/shrpx_listen_handler.h index 0da9e7b5..aa1b189e 100644 --- a/src/shrpx_listen_handler.h +++ b/src/shrpx_listen_handler.h @@ -93,8 +93,8 @@ private: evconnlistener *evlistener4_; evconnlistener *evlistener6_; std::unique_ptr worker_stat_; + size_t num_worker_shutdown_; unsigned int worker_round_robin_cnt_; - int num_worker_shutdown_; }; } // namespace shrpx