summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 63ed0a644..eb1f4c2f7 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -506,9 +506,10 @@ void TWFunc::Update_Intent_File(string Intent) {
// reboot: Reboot the system. Return -1 on error, no return on success
int TWFunc::tw_reboot(RebootCommand command)
{
+ DataManager::Flush();
+ Update_Log_File();
// Always force a sync before we reboot
sync();
- Update_Log_File();
switch (command) {
case rb_current: