summaryrefslogtreecommitdiffstats
path: root/adbbu/twrpback.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2017-03-20 23:53:53 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2017-04-23 20:37:22 +0200
commitb5ecaad27a358a525d4f25282ca8aacd55bd4cae (patch)
treecb2291ab0060265e19f19562e8b3e28423b91626 /adbbu/twrpback.cpp
parent3.1.0 (diff)
downloadandroid_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.gz
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.bz2
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.lz
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.xz
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.zst
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.zip
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");