summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-12-31 01:13:51 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:50:35 +0100
commit028995512b36242a2292948b457a255b96c77d9b (patch)
treeb318530e5affe0eadd19aaa57a96f174d1834c1b /partitionmanager.cpp
parentUnused variable cleanup (diff)
downloadandroid_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.tar
android_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.tar.gz
android_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.tar.bz2
android_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.tar.lz
android_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.tar.xz
android_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.tar.zst
android_bootable_recovery-028995512b36242a2292948b457a255b96c77d9b.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 871b08225..0395f1777 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -588,7 +588,6 @@ bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
else
md5Success = Make_MD5(part_settings);
- TWFunc::SetPerformanceMode(false);
if (part_settings->Part->Has_SubPartition) {
std::vector<TWPartition*>::iterator subpart;
TWPartition *parentPart = part_settings->Part;
@@ -597,10 +596,10 @@ bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
if ((*subpart)->Can_Be_Backed_Up && (*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == parentPart->Mount_Point) {
part_settings->Part = *subpart;
if (!(*subpart)->Backup(part_settings, &tar_fork_pid)) {
- TWFunc::SetPerformanceMode(false);
Clean_Backup_Folder(part_settings->Backup_Folder);
TWFunc::copy_file("/tmp/recovery.log", backup_log, 0644);
tw_set_default_metadata(backup_log.c_str());
+ TWFunc::SetPerformanceMode(false);
return false;
}
sync();
@@ -625,6 +624,7 @@ bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
}
+ TWFunc::SetPerformanceMode(false);
return md5Success;
} else {
Clean_Backup_Folder(part_settings->Backup_Folder);