Fix audio calling complete callbacks twice

This commit is contained in:
Ralty
2025-08-09 13:41:05 +07:00
parent 0ff829e1c6
commit e17b5d6b86
@@ -161,9 +161,9 @@ class NativeAudioSource {
}
private function complete() {
completed = true;
if (!completed) parent.onComplete.dispatch();
stop();
parent.onComplete.dispatch();
completed = true;
}
// Streaming, atleast for vorbis for now.