summaryrefslogtreecommitdiffstats
path: root/adbbu/twrpback.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--adbbu/twrpback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adbbu/twrpback.cpp b/adbbu/twrpback.cpp
index d9b973bcc..1c98a1b5c 100644
--- a/adbbu/twrpback.cpp
+++ b/adbbu/twrpback.cpp
@@ -330,7 +330,7 @@ int twrpback::backup(std::string command) {
//to the adb stream.
//If the stream is compressed, we need to always write the data.
if (writedata || compressed) {
- while ((bytes = read(adb_read_fd, &result, sizeof(result))) == MAX_ADB_READ) {
+ while ((bytes = read(adb_read_fd, &result, sizeof(result))) > 0) {
if (firstDataPacket) {
struct AdbBackupControlType data_block;