diff --git a/src/ReadTask.cpp b/src/ReadTask.cpp index 848c97ef7..af73f3b79 100644 --- a/src/ReadTask.cpp +++ b/src/ReadTask.cpp @@ -65,6 +65,8 @@ bool ReadTask::run() } break; } + if (err == 0) + break; resp->returnCode += err; resp->payloadLen += err; }