Permalink
Browse files

clear the action queues

  • Loading branch information...
dustinrue committed Mar 25, 2012
1 parent b40f91f commit c71d4c92e425a37677f55d03025ce2d61e21ebf6
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/CPController.m
View
@@ -1305,6 +1305,8 @@ - (void) setScreenSaverInActive:(NSNotification *) notification {
[self setScreenSaverRunning:NO];
[self executeActionSet:screensaverActionDepartureQueue];
[self executeActionSet:screensaverActionArrivalQueue];
+ [screensaverActionArrivalQueue removeAllObjects];
+ [screensaverActionDepartureQueue removeAllObjects];
DSLog(@"Screen saver is not running");
}
@@ -1321,6 +1323,8 @@ - (void) setScreenLockInActive:(NSNotification *) notification {
[self setScreenLocked:NO];
[self executeActionSet:screenLockActionDepartureQueue];
[self executeActionSet:screenLockActionArrivalQueue];
+ [screenLockActionDepartureQueue removeAllObjects];
+ [screenLockActionArrivalQueue removeAllObjects];
DSLog(@"screen lock becoming inactive");
}

0 comments on commit c71d4c9

Please sign in to comment.