diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-07 09:09:13 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-12 17:55:58 +0200 |
commit | 1ed6d499b6bf02a399fb32059caccdea847335b0 (patch) | |
tree | 2784981073a5b81bd4ce78b2aff64616f403655b /src/protocol.cpp | |
parent | 010e66188e24b80f9c5d2e9ab3645792cab07f20 (diff) | |
download | bitcoin-1ed6d499b6bf02a399fb32059caccdea847335b0.tar.xz |
rpc: pass errors from async_accept
According to the [boost::asio documentation](http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/reference/basic_socket_acceptor/async_accept/overload2.html),
the function signature of the handler must be:
void handler(
const boost::system::error_code& error // Result of operation.
);
We were binding *all* the arguments, instead of all but the error,
resulting in nullary function that never got the error. Fix this
by adding an input argument substitution.
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 0a0cd34
Diffstat (limited to 'src/protocol.cpp')
0 files changed, 0 insertions, 0 deletions