Load graph before creating a server

This commit is contained in:
Lev Dragunov 2017-07-06 19:03:16 +03:00 committed by Patrick Niklaus
parent 1ef75c7a61
commit b12fee5c0a

View File

@ -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<server::ServiceHandler>(config);
auto routing_server = server::Server::CreateServer(ip_address, ip_port, requested_thread_num);
routing_server->RegisterServiceHandler(std::move(service_handler));