From 32073877c48e51b8e011129ae99646ece8dedd21 Mon Sep 17 00:00:00 2001 From: Devoxin Date: Thu, 26 Dec 2024 17:31:04 +0000 Subject: [PATCH] Don't write stacktraces for StreamExpiredExceptions --- .../java/dev/lavalink/youtube/track/YoutubeAudioTrack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/dev/lavalink/youtube/track/YoutubeAudioTrack.java b/common/src/main/java/dev/lavalink/youtube/track/YoutubeAudioTrack.java index ed9c6a5..931fed0 100644 --- a/common/src/main/java/dev/lavalink/youtube/track/YoutubeAudioTrack.java +++ b/common/src/main/java/dev/lavalink/youtube/track/YoutubeAudioTrack.java @@ -277,8 +277,8 @@ private static class StreamExpiredException extends RuntimeException { private final long lastStreamPosition; private StreamExpiredException(long lastStreamPosition, - @NotNull Exception cause) { - super(cause); + @NotNull Throwable cause) { + super(null, cause, true, false); this.lastStreamPosition = lastStreamPosition; } }