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

Skip to content
Commit 39799535 authored by Sonny Sasaka's avatar Sonny Sasaka
Browse files

Floss: Fix deadlock in powerd suspend manager

The deadlock occurs when self.context.lock() is called inside an `if
let` block that also holds the guard of self.context.lock(). To solve
this we should lock only once and then we can use the guarded
self.context multiple times in an anonymous block.

Bug: 233562909
Tag: #floss
Test: Manual - powerd_dbus_suspend when Floss is not enabled

Change-Id: I2f7f1a40dd74fb5e1bcdfa6df97e23dab9a0a3b5
parent b4a88c7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment