Skip to content

Commit 309ca54

Browse files
committed
Fixed handling of erase command responces
1 parent ebad2e7 commit 309ca54

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

qt/reader.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,8 @@ int Reader::readData()
226226

227227
if ((offset = handlePackets(pbuf, static_cast<uint32_t>(len))) < 0)
228228
return -1;
229-
230-
if (!bytesRead)
231-
continue;
232229
}
233-
while (rlen && rlen != bytesRead);
230+
while (!bytesRead || (rlen && rlen != bytesRead));
234231

235232
return 0;
236233
}

0 commit comments

Comments
 (0)