There was an error while loading. Please reload this page.
1 parent 0ff829e commit e17b5d6Copy full SHA for e17b5d6
1 file changed
source/lime/_internal/backend/native/NativeAudioSource.hx
@@ -161,9 +161,9 @@ class NativeAudioSource {
161
}
162
163
private function complete() {
164
- completed = true;
+ if (!completed) parent.onComplete.dispatch();
165
stop();
166
- parent.onComplete.dispatch();
+ completed = true;
167
168
169
// Streaming, atleast for vorbis for now.
0 commit comments