Update torchlight_changes_unloze/torchlight3/Torchlight/FFmpegAudioPlayer.py

This commit is contained in:
Metroid_Skittles 2026-02-13 16:53:47 +01:00
parent 4692bffe08
commit c2c177f876

View File

@ -244,7 +244,11 @@ class FFmpegAudioPlayer():
await Process.wait()
if self.Playing:
self.Stop(False)
# Keep the clip active until the updater reaches self.Seconds.
# This allows !stop to interrupt short clips that are already
# buffered to the voice socket but still audible in-game.
if self.StartedPlaying is None:
self.Stop(False)
except asyncio.CancelledError:
raise
except Exception: