Update torchlight_changes_unloze/torchlight3/Torchlight/FFmpegAudioPlayer.py
This commit is contained in:
parent
4692bffe08
commit
c2c177f876
@ -244,7 +244,11 @@ class FFmpegAudioPlayer():
|
|||||||
await Process.wait()
|
await Process.wait()
|
||||||
|
|
||||||
if self.Playing:
|
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:
|
except asyncio.CancelledError:
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user