Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0418394f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "osi: explicitly release wakelock during turn off"

parents db9bf7bd b1a7d47e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -213,6 +213,10 @@ static void wakelock_initialize_native(void) {
}

void wakelock_cleanup(void) {
  if (wakelock_stats.is_acquired) {
    LOG_ERROR(LOG_TAG, "%s releasing wake lock as part of cleanup", __func__);
    wakelock_release();
  }
  wake_lock_path.clear();
  wake_unlock_path.clear();
  initialized = PTHREAD_ONCE_INIT;