diff options
author | Damiano Galassi <[email protected]> | 2017-03-15 16:31:57 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-03-15 16:31:57 +0100 |
commit | 9c0c958582c3c793136f08f6635059605a31d8be (patch) | |
tree | 03ac3d7e051d1bba2ce9ac120374f567bd1c6285 /macosx/HBQueueController.m | |
parent | 3354623c7f59e95b88d769b9e62fff28ff857b9a (diff) |
MacGui: fix a possible race condition with the multiprocess queue when editing a job.
Diffstat (limited to 'macosx/HBQueueController.m')
-rw-r--r-- | macosx/HBQueueController.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m index 9219458ae..f6da396bb 100644 --- a/macosx/HBQueueController.m +++ b/macosx/HBQueueController.m @@ -1268,8 +1268,6 @@ NSParameterAssert(job); [self.jobs beginTransaction]; - NSInteger index = [self.jobs indexOfObject:job]; - if (job != self.currentJob) { job.state = HBJobStateWorking; @@ -1278,6 +1276,7 @@ if (result) { // Now that source is loaded and settings applied, delete the queue item from the queue + NSInteger index = [self.jobs indexOfObject:job]; [self removeQueueItemAtIndex:index]; } else |