Commit 8320cc9d authored by Jelte Jansen's avatar Jelte Jansen
Browse files

directly evaluate *read_result to see if there was an error

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent ed14812f
......@@ -198,7 +198,8 @@ SessionImpl::readData(void* data, size_t datalen) {
if (read_result->value() != 0) {
// asio::error_code evaluates to false if there was no error
if (*read_result) {
if (*read_result == asio::error::operation_aborted) {
"Timeout while reading data from cc session");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment