Do not remove the actions from a queue item after its completion.
This commit is contained in:
1 parent
eb7d2c5ba7
commit
ae08dae8d6
2 files changed
+2
-6
No files matched your search
+2
-2
@@ -38,8 +38,8 @@ NSString *SBQueueCancelledNotification = @"SBQueueCancelledNotification";
|
|||||||
- (instancetype)initWithURL:(NSURL *)queueURL {
|
- (instancetype)initWithURL:(NSURL *)queueURL {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
_workQueue = dispatch_queue_create("org.subler.WorkQueue", NULL);
|
_workQueue = dispatch_queue_create("org.subler.WorkQueue", DISPATCH_QUEUE_SERIAL);
|
||||||
_arrayQueue = dispatch_queue_create("org.subler.SaveQueue", NULL);
|
_arrayQueue = dispatch_queue_create("org.subler.SaveQueue", DISPATCH_QUEUE_SERIAL);
|
||||||
_URL = [queueURL copy];
|
_URL = [queueURL copy];
|
||||||
|
|
||||||
if ([[NSFileManager defaultManager] fileExistsAtPath:queueURL.path]) {
|
if ([[NSFileManager defaultManager] fileExistsAtPath:queueURL.path]) {
|
||||||
|
|||||||
@@ -362,10 +362,6 @@ bail:
|
|||||||
self.mp4File.progressHandler = nil;
|
self.mp4File.progressHandler = nil;
|
||||||
self.mp4File = nil;
|
self.mp4File = nil;
|
||||||
|
|
||||||
[self willChangeValueForKey:@"actions"];
|
|
||||||
[self.actionsInternal removeAllObjects];
|
|
||||||
[self didChangeValueForKey:@"actions"];
|
|
||||||
|
|
||||||
#ifdef SB_SANDBOX
|
#ifdef SB_SANDBOX
|
||||||
if ([destination respondsToSelector:@selector(stopAccessingSecurityScopedResource)])
|
if ([destination respondsToSelector:@selector(stopAccessingSecurityScopedResource)])
|
||||||
[destination stopAccessingSecurityScopedResource];
|
[destination stopAccessingSecurityScopedResource];
|
||||||
|
|||||||
Reference in new issue
Block a user