diff options
-rw-r--r-- | server/client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/client.cpp b/server/client.cpp index aa0cdb7..2155359 100644 --- a/server/client.cpp +++ b/server/client.cpp @@ -84,6 +84,8 @@ void Client::handle_lobby(Message::p msg, boost::function<void (int)> lobby_call void Client::handle_ready(Message::p msg, boost::function<void ()> ready_callback) { if(msg->type != Message::Types::Ready) { + // Wait for another message. + connection->recv(boost::bind(&Client::handle_ready, shared_from_this(), _1, ready_callback)); return; } |