diff --git a/src/network/master.cpp b/src/network/master.cpp index 1162a88b9..cac51197b 100644 --- a/src/network/master.cpp +++ b/src/network/master.cpp @@ -70,10 +70,10 @@ QCoro::Task CMetaClient::Init() } // Server socket - CHost metaServerHost = co_await CHost::from_host_name_and_port(metaHost.c_str(), metaPort); + CHost metaServerHost = CHost::from_host_name_and_port(metaHost.c_str(), metaPort); // Client socket - CHost metaClientHost = co_await CHost::from_host_name_and_port(CNetworkParameter::Instance.localHost.c_str(), CNetworkParameter::Instance.localPort); + CHost metaClientHost = CHost::from_host_name_and_port(CNetworkParameter::Instance.localHost.c_str(), CNetworkParameter::Instance.localPort); if (metaSocket.Open(metaClientHost) == false) { fprintf(stderr, "METACLIENT: No free port %d available, aborting\n", metaServerHost.get_port()); diff --git a/src/network/network_manager.cpp b/src/network/network_manager.cpp index 843b1ba1b..64570e5af 100644 --- a/src/network/network_manager.cpp +++ b/src/network/network_manager.cpp @@ -85,7 +85,7 @@ QCoro::Task network_manager::setup_server_address(const std::string server auto host = std::make_unique(); try { - co_await CHost::from_host_name_and_port(*host, server_address.c_str(), port); + CHost::from_host_name_and_port(*host, server_address.c_str(), port); if (host->isValid() == false) { //return false if an error occurred