Include error code in call to set_option

This commit is contained in:
Johan Rönnkvist
2019-01-05 13:59:46 +01:00
committed by Vinnie Falco
parent 3595eb2221
commit be800436ea
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
Version 203
* Update networking refresher doc
* Include error code in call to set_option
--------------------------------------------------------------------------------

View File

@ -31,7 +31,7 @@ listener(
}
// Allow address reuse
acceptor_.set_option(net::socket_base::reuse_address(true));
acceptor_.set_option(net::socket_base::reuse_address(true), ec);
if(ec)
{
fail(ec, "set_option");