From b12fee5c0a3c9ae1986083690d894cea92446e54 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Thu, 6 Jul 2017 19:03:16 +0300 Subject: [PATCH] Load graph before creating a server --- src/tools/routed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));