Wesnothd Connection: used a void promise at celmin's suggestion
This commit is contained in:
parent
1d5e4f881a
commit
bced41acef
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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_;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue