diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs index 84505d42a..098e9201a 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs @@ -575,8 +575,8 @@ namespace HandBrakeWPF.Services.Queue else
{
this.EncodeService.EncodeCompleted -= this.EncodeServiceEncodeCompleted;
- this.OnQueueCompleted(new QueueCompletedEventArgs(true));
this.BackupQueue(string.Empty);
+ this.OnQueueCompleted(new QueueCompletedEventArgs(true));
}
}
@@ -660,17 +660,18 @@ namespace HandBrakeWPF.Services.Queue this.InvokeQueueChanged(EventArgs.Empty);
this.InvokeJobProcessingStarted(new QueueProgressEventArgs(job));
this.EncodeService.Start(job.Task, job.Configuration);
+ this.BackupQueue(string.Empty);
}
else
{
// No more jobs to process, so unsubscribe the event
this.EncodeService.EncodeCompleted -= this.EncodeServiceEncodeCompleted;
+ this.BackupQueue(string.Empty);
+
// Fire the event to tell connected services.
this.OnQueueCompleted(new QueueCompletedEventArgs(false));
}
-
- this.BackupQueue(string.Empty);
}
#endregion
|