From f30fe1b699890c88456b9c274ddd9da8c7f98fc7 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 31 Aug 2013 15:31:40 -0700 Subject: [PATCH] Fix AutoSocket to use wrap() instead of post() --- modules/ripple_websocket/autosocket/ripple_AutoSocket.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } }