diff --git a/modules/ripple_websocket/autosocket/ripple_AutoSocket.h b/modules/ripple_websocket/autosocket/ripple_AutoSocket.h index b6d266f7b7..4a263ccaca 100644 --- a/modules/ripple_websocket/autosocket/ripple_AutoSocket.h +++ b/modules/ripple_websocket/autosocket/ripple_AutoSocket.h @@ -127,7 +127,8 @@ public: { // must be plain mSecure = false; - mSocket->get_io_service ().post (boost::bind (cbFunc, error_code ())); + //mSocket->get_io_service ().post (boost::bind (cbFunc, error_code ())); + mSocket->get_io_service ().wrap (cbFunc) (error_code()); } else { @@ -154,7 +155,8 @@ public: { ec = e.code(); } - mSocket->get_io_service ().post (boost::bind (handler, ec)); + //mSocket->get_io_service ().post (boost::bind (handler, ec)); + mSocket->get_io_service ().wrap (handler) (ec); } }