Wesnothd Connection: used a void promise at celmin's suggestion

This commit is contained in:
Charles Dang 2019-08-06 14:17:50 +11:00
parent 1d5e4f881a
commit bced41acef
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ void wesnothd_connection::handle_handshake(const error_code& ec)
throw system_error(ec);
}
handshake_finished_.set_value(true);
handshake_finished_.set_value();
recv();
}

View file

@ -134,7 +134,7 @@ private:
std::mutex last_error_mutex_;
std::promise<bool> handshake_finished_;
std::promise<void> handshake_finished_;
boost::asio::streambuf read_buf_;