Fix boost logic (taked from bitcoin 1ed6d49)
authorsvost <ya.nowa@yandex.ru>
Fri, 10 Feb 2017 06:23:34 +0000 (09:23 +0300)
committersvost <ya.nowa@yandex.ru>
Fri, 10 Feb 2017 06:23:34 +0000 (09:23 +0300)
src/bitcoinrpc.cpp

index 4348d9a..d035d58 100644 (file)
@@ -729,7 +729,7 @@ static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketA
                 boost::ref(context),
                 fUseSSL,
                 conn,
-                boost::asio::placeholders::error));
+                _1));
 }
 
 /**
@@ -755,6 +755,8 @@ static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol,
     if (error)
     {
         delete conn;
+        // TODO: Actually handle errors
+        printf("%s: Error: %s\n", __func__, error.message().c_str());
     }
 
     // Restrict callers by IP.  It is important to