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

Commit 4d9dab16 authored by Martin Brabham's avatar Martin Brabham Committed by android-build-merger
Browse files

Merge "osi: explicitly release wakelock during turn off"

am: 0418394f

Change-Id: Ib3b886cfca8edc7faf4a3484e3fa80e14d799616
parents 3af2f4b9 0418394f
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;