Some more failsafes
This commit is contained in:
@@ -33,6 +33,12 @@ public abstract class Job {
|
||||
case EJobStatus.Failed:
|
||||
Failed?.Invoke(this, JobStatus);
|
||||
break;
|
||||
case EJobStatus.Running: // If still running or waiting, mark as completed
|
||||
case EJobStatus.Waiting: //somebody forgot to update the status and the method returned.
|
||||
case EJobStatus.Completed:
|
||||
Completed?.Invoke(this, JobStatus);
|
||||
break;
|
||||
case EJobStatus.Queued: // This should never happen
|
||||
default:
|
||||
Completed?.Invoke(this, JobStatus);
|
||||
break;
|
||||
|
||||
@@ -178,6 +178,7 @@ public class ThumbnailJob : Job {
|
||||
return;
|
||||
}
|
||||
}
|
||||
JobStatus.Complete("All thumbnails generated successfully.");
|
||||
}
|
||||
|
||||
void IncrementProcessedAssets() {
|
||||
|
||||
Reference in New Issue
Block a user