From 93d214ead6ab9949bc84371050e838b2c61215c3 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 2 Oct 2022 10:58:00 +0200 Subject: [PATCH] Cleanup --- sbapp/services/sidebandservice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbapp/services/sidebandservice.py b/sbapp/services/sidebandservice.py index df2b295..030b5da 100644 --- a/sbapp/services/sidebandservice.py +++ b/sbapp/services/sidebandservice.py @@ -130,7 +130,6 @@ class SidebandService(): if not self.multicast_lock.isHeld(): RNS.log("Taking multicast lock") self.multicast_lock.acquire() - RNS.log("Took lock") if self.wake_lock == None: self.wake_lock = self.power_manager.newWakeLock(self.power_manager.PARTIAL_WAKE_LOCK, "sideband_service") @@ -138,14 +137,15 @@ class SidebandService(): if not self.wake_lock.isHeld(): RNS.log("Taking wake lock") self.wake_lock.acquire() - RNS.log("Took lock") def release_locks(self): if RNS.vendor.platformutils.get_platform() == "android": if not self.multicast_lock == None and self.multicast_lock.isHeld(): + RNS.log("Releasing multicast lock") self.multicast_lock.release() if not self.wake_lock == None and self.wake_lock.isHeld(): + RNS.log("Releasing wake lock") self.wake_lock.release() def run(self):