From 8b441e30c567c9030f7a9681a8f226601b6fefd2 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 21 Oct 2019 12:03:28 -0700 Subject: [PATCH] Remove Howler.js end listener on stop() --- src/lime/_internal/backend/html5/HTML5AudioSource.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lime/_internal/backend/html5/HTML5AudioSource.hx b/src/lime/_internal/backend/html5/HTML5AudioSource.hx index e8a5f91c3..96256c998 100644 --- a/src/lime/_internal/backend/html5/HTML5AudioSource.hx +++ b/src/lime/_internal/backend/html5/HTML5AudioSource.hx @@ -78,6 +78,7 @@ class HTML5AudioSource if (parent.buffer != null && parent.buffer.__srcHowl != null) { parent.buffer.__srcHowl.stop(id); + parent.buffer.__srcHowl.off ("end", howl_onEnd, id); } #end } @@ -99,6 +100,7 @@ class HTML5AudioSource else if (parent.buffer != null && parent.buffer.__srcHowl != null) { parent.buffer.__srcHowl.stop(id); + parent.buffer.__srcHowl.off ("end", howl_onEnd, id); } completed = true;