mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 07:12:08 +02:00
suspend: reset sleep inhibitor if already present upon resume
This commit is contained in:
@@ -66,7 +66,8 @@ static void take_inhibitor(struct EG25Manager *manager)
|
||||
{
|
||||
GVariant *variant_arg;
|
||||
|
||||
g_assert(manager->suspend_inhibit_fd == -1);
|
||||
if(manager->suspend_inhibit_fd != -1)
|
||||
drop_inhibitor(manager);
|
||||
|
||||
variant_arg = g_variant_new ("(ssss)", "sleep", "eg25manager",
|
||||
"eg25manager needs to prepare modem for sleep", "delay");
|
||||
|
Reference in New Issue
Block a user