mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add timeout for streams response.
This commit is contained in:
parent
444d789987
commit
f757c439af
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ public class StreamHandlers {
|
|||
final List<Subtitle> subtitles = new ObjectArrayList<>();
|
||||
final List<ChapterSegment> chapters = new ObjectArrayList<>();
|
||||
|
||||
final StreamInfo info = futureStream.get();
|
||||
final StreamInfo info = futureStream.get(10, TimeUnit.SECONDS);
|
||||
|
||||
info.getStreamSegments().forEach(segment -> chapters.add(new ChapterSegment(segment.getTitle(), rewriteURL(segment.getPreviewUrl()),
|
||||
segment.getStartTimeSeconds())));
|
||||
|
|
Loading…
Reference in a new issue