Skip to content

Commit 320cb76

Browse files
author
Dominic Rodemer
committed
IOPMAssertionCreateWithDescription needs a timeout. Otherwise deactivating the app will have no effect.
1 parent 624e1b0 commit 320cb76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Caffeine/Classes/CAAppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ - (void)timer:(NSTimer*)timer
193193
NULL,
194194
NULL,
195195
NULL,
196-
0,
196+
8, //Timeout assertion after 8 sec
197197
NULL,
198198
&sleepAssertionID);
199199
}

0 commit comments

Comments
 (0)