Do not remove the actions from a queue item after its completion.

This commit is contained in:
Damiano Galassi committed 2016-11-11 11:57:11 +01:00
1 parent eb7d2c5ba7
commit ae08dae8d6
2 files changed
+2 -6

No files matched your search

+2 -2
View File
@@ -38,8 +38,8 @@ NSString *SBQueueCancelledNotification = @"SBQueueCancelledNotification";
- (instancetype)initWithURL:(NSURL *)queueURL {
self = [super init];
if (self) {
_workQueue = dispatch_queue_create("org.subler.WorkQueue", NULL);
_arrayQueue = dispatch_queue_create("org.subler.SaveQueue", NULL);
_workQueue = dispatch_queue_create("org.subler.WorkQueue", DISPATCH_QUEUE_SERIAL);
_arrayQueue = dispatch_queue_create("org.subler.SaveQueue", DISPATCH_QUEUE_SERIAL);
_URL = [queueURL copy];
if ([[NSFileManager defaultManager] fileExistsAtPath:queueURL.path]) {
-4
View File
@@ -362,10 +362,6 @@ bail:
self.mp4File.progressHandler = nil;
self.mp4File = nil;
[self willChangeValueForKey:@"actions"];
[self.actionsInternal removeAllObjects];
[self didChangeValueForKey:@"actions"];
#ifdef SB_SANDBOX
if ([destination respondsToSelector:@selector(stopAccessingSecurityScopedResource)])
[destination stopAccessingSecurityScopedResource];