mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
hotfix
This commit is contained in:
1 parent
207c60ceec
commit
b0f816e60b
1 file changed
+4
-1
@@ -58,7 +58,10 @@ const StreamPipeline = {
|
||||
|
||||
const stream = this._stream;
|
||||
if (stream) {
|
||||
const onEnd = () => resolve();
|
||||
const onEnd = () => {
|
||||
if (durationMs > 0 && this._playing && !this._stopped) return;
|
||||
resolve();
|
||||
};
|
||||
stream.once("end", onEnd);
|
||||
stream.once("close", onEnd);
|
||||
stream.once("error", failFast);
|
||||
|
||||
Reference in new issue
Block a user