Whoops, avoid the computer sleep, not the display sleep.
This commit is contained in:
1 parent
81657e9091
commit
90853892d2
2 files changed
+2
-2
No files matched your search
@@ -203,7 +203,7 @@
|
||||
IOPMAssertionID assertionID;
|
||||
// Enable sleep assertion
|
||||
CFStringRef reasonForActivity= CFSTR("Subler Save Operation");
|
||||
IOReturn io_success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
|
||||
IOReturn io_success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep,
|
||||
kIOPMAssertionLevelOn, reasonForActivity, &assertionID);
|
||||
|
||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||
|
||||
Reference in new issue
Block a user