summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-05 09:47:17 +0200
committerDamiano Galassi <[email protected]>2015-10-05 09:47:17 +0200
commitc49144b1106ce6856699729edce5bcac4de24255 (patch)
tree460e70bc3fb823658bfdbd630ffa49bbb815cb4a /libhb/ports.c
parent7323a7dd39c99671afd87bdd1c694704d9921170 (diff)
Use the non deprecated kIOPMAssertPreventUserIdleSystemSleep assertion to prevent sleep on OS X.
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 23be576b9..ee896acb4 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -1337,7 +1337,7 @@ void hb_system_sleep_private_disable(void *opaque)
return;
}
- IOReturn success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep,
+ IOReturn success = IOPMAssertionCreateWithName(kIOPMAssertPreventUserIdleSystemSleep,
kIOPMAssertionLevelOn,
reasonForActivity,
assertionID);