From c49144b1106ce6856699729edce5bcac4de24255 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 5 Oct 2015 09:47:17 +0200 Subject: Use the non deprecated kIOPMAssertPreventUserIdleSystemSleep assertion to prevent sleep on OS X. --- libhb/ports.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/ports.c') 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); -- cgit v1.2.3