Skip to content

Commit

Permalink
worker: Fix continue downloading after encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pando85 committed Jan 13, 2024
1 parent e4a2e82 commit 28a4d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker/task/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func (E *EncodeWorker) resumeJobs() {
case taskEncode.LastState.IsDownloading():
E.AddDownloadJob(taskEncode.Task)
case taskEncode.LastState.IsEncoding():
atomic.AddUint32(&E.prefetchJobs, 1)
t := E.terminal.AddTask(fmt.Sprintf("cached: %s", taskEncode.Task.TaskEncode.Id.String()), DownloadJobStepType)
t.Done()
E.encodeChan <- taskEncode.Task
Expand Down

0 comments on commit 28a4d5d

Please sign in to comment.