diff --git a/main.cpp b/main.cpp index 60fa236..9b98031 100644 --- a/main.cpp +++ b/main.cpp @@ -108,7 +108,7 @@ GameType check_server_client(int argc, char** argv) { client->create_socket(); /* Send a specific message to the server, and wait for the appropriate response, to know that the server is ready */ client->sendAll("GG"); - std::string msg_from_server = client->recvAllNB(); + std::string msg_from_server = client->recvAll(); if (msg_from_server == "U2") { std::cout << "Connection made. Waiting for server to begin game..." << std::endl; } else {