Skip to content

Commit

Permalink
Bugfix: stop processing jobs after calling stop
Browse files Browse the repository at this point in the history
It seems like _isRunning is the control variable for methods that process jobs. By setting this to `NO`
we ensure that we actually stop processing jobs.
  • Loading branch information
ryandotsmith committed Apr 4, 2014
1 parent 5e68ee0 commit 04049de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EDQueue/EDQueue.m
Expand Up @@ -144,7 +144,7 @@ - (void)start
- (void)stop
{
if (self.isRunning) {
_isRunning = YES;
_isRunning = NO;
[self performSelectorOnMainThread:@selector(postNotification:) withObject:[NSDictionary dictionaryWithObjectsAndKeys:EDQueueDidStop, @"name", nil, @"data", nil] waitUntilDone:false];
}
}
Expand Down

0 comments on commit 04049de

Please sign in to comment.