From c56174c16a6b500699d30c1d43eb3d45e8ec6363 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 24 Jan 2013 15:51:52 -0800 Subject: [PATCH] Don't invoke callback funcition directly. --- src/cpp/ripple/AutoSocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/AutoSocket.h b/src/cpp/ripple/AutoSocket.h index ccf82ab507..9f04d3b4e7 100644 --- a/src/cpp/ripple/AutoSocket.h +++ b/src/cpp/ripple/AutoSocket.h @@ -75,7 +75,7 @@ public: else if (mBuffer.empty()) { // must be plain mSecure = false; - cbFunc(error_code()); + mSocket->get_io_service().post(boost::bind(cbFunc, error_code())); } else { // autodetect