forked from j62/ctbrec
Replace CompletableFuture with a submit to segmentDownloadPool
This commit is contained in:
parent
fa7f1e5f57
commit
3fedfe4be7
|
@ -158,7 +158,7 @@ public class NextGenLocalRecorder implements Recorder {
|
|||
ScheduledFuture<Recording> rescheduledFuture = downloadPool.schedule(rec, delay, TimeUnit.MILLISECONDS);
|
||||
downloadFutureQueue.add(rescheduledFuture);
|
||||
} else {
|
||||
CompletableFuture.runAsync(() -> {
|
||||
segmentDownloadPool.submit(() -> {
|
||||
deleteIfEmpty(rec);
|
||||
removeRecordingProcess(rec);
|
||||
if (rec.getStatus() == State.WAITING) {
|
||||
|
|
Loading…
Reference in New Issue