Don't invoke callback funcition directly.

This commit is contained in:
JoelKatz
2013-01-24 15:51:52 -08:00
parent a028bbea92
commit c56174c16a

View File

@@ -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