diff options
Diffstat (limited to 'Input')
-rw-r--r-- | Input/ICNConnectionConsumerApi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Input/ICNConnectionConsumerApi.cpp b/Input/ICNConnectionConsumerApi.cpp index c93e9ed4..59330852 100644 --- a/Input/ICNConnectionConsumerApi.cpp +++ b/Input/ICNConnectionConsumerApi.cpp @@ -160,8 +160,8 @@ int ICNConnectionConsumerApi::Read(uint8_t *data, size_t len) } else { memcpy(data, (char*)response.getPayload().data() + this->dataPos, response.getPayload().size() - this->dataPos); - int length = response.getPayload().size() - this->dataPos; - if (length == 0) + int length = response.getPayload().size() - this->dataPos; + if (length == 0) { this->res = false; } |