forked from j62/ctbrec
Fix NPE in internalStop
This commit is contained in:
parent
cd5172613e
commit
3c4ef05a48
|
@ -358,6 +358,7 @@ public class MergedFfmpegHlsDownload extends AbstractHlsDownload {
|
|||
}
|
||||
}
|
||||
|
||||
if (ffmpeg != null) {
|
||||
try {
|
||||
boolean waitFor = ffmpeg.waitFor(5, TimeUnit.MINUTES);
|
||||
if (!waitFor && ffmpeg.isAlive()) {
|
||||
|
@ -370,6 +371,7 @@ public class MergedFfmpegHlsDownload extends AbstractHlsDownload {
|
|||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class SegmentDownload implements Callable<byte[]> {
|
||||
private URL url;
|
||||
|
|
Loading…
Reference in New Issue