diff --git a/src/tools/routed.cpp b/src/tools/routed.cpp index 956a10b56..3623de95d 100644 --- a/src/tools/routed.cpp +++ b/src/tools/routed.cpp @@ -257,8 +257,8 @@ int main(int argc, const char *argv[]) try pthread_sigmask(SIG_BLOCK, &new_mask, &old_mask); #endif - auto routing_server = server::Server::CreateServer(ip_address, ip_port, requested_thread_num); auto service_handler = std::make_unique(config); + auto routing_server = server::Server::CreateServer(ip_address, ip_port, requested_thread_num); routing_server->RegisterServiceHandler(std::move(service_handler));