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
+1
-1
@@ -151,7 +151,7 @@ NSString *SBQueueCancelledNotification = @"SBQueueCancelledNotification";
|
||||
|
||||
- (void)disableSleep {
|
||||
CFStringRef reasonForActivity= CFSTR("Subler Queue Started");
|
||||
_io_success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
|
||||
_io_success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep,
|
||||
kIOPMAssertionLevelOn, reasonForActivity, &_assertionID);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user