summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--twrp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twrp.cpp b/twrp.cpp
index b67631ea8..3e0fc9b9a 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -273,7 +273,8 @@ int main(int argc, char **argv) {
DataManager::ReadSettingsFile();
// Fixup the RTC clock on devices which require it
- TWFunc::Fixup_Time_On_Boot();
+ if(crash_counter == 0)
+ TWFunc::Fixup_Time_On_Boot();
// Run any outstanding OpenRecoveryScript
if (DataManager::GetIntValue(TW_IS_ENCRYPTED) == 0 && (TWFunc::Path_Exists(SCRIPT_FILE_TMP) || TWFunc::Path_Exists(SCRIPT_FILE_CACHE))) {