diff options
author | Damiano Galassi <[email protected]> | 2015-10-05 09:47:17 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-05 09:47:17 +0200 |
commit | c49144b1106ce6856699729edce5bcac4de24255 (patch) | |
tree | 460e70bc3fb823658bfdbd630ffa49bbb815cb4a | |
parent | 7323a7dd39c99671afd87bdd1c694704d9921170 (diff) |
Use the non deprecated kIOPMAssertPreventUserIdleSystemSleep assertion to prevent sleep on OS X.
-rw-r--r-- | libhb/ports.c | 2 |
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); |