summaryrefslogtreecommitdiffstats
path: root/adbbu/twrpback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adbbu/twrpback.cpp')
-rw-r--r--adbbu/twrpback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adbbu/twrpback.cpp b/adbbu/twrpback.cpp
index 2a227ecb1..c59fd1cda 100644
--- a/adbbu/twrpback.cpp
+++ b/adbbu/twrpback.cpp
@@ -514,7 +514,6 @@ int twrpback::restore(void) {
return -1;
}
}
-
//If we should read from the adb stream, write commands and data to TWRP
if (read_from_adb) {
std::string cmdstr;
@@ -547,6 +546,7 @@ int twrpback::restore(void) {
close_restore_fds();
return -1;
}
+ read_from_adb = false;
}
else {
adblogwrite("ADB TWENDADB crc header doesn't match\n");