Remove Howler.js end listener on stop()

This commit is contained in:
Joshua Granick
2019-10-21 12:03:28 -07:00
parent dfc1507565
commit 8b441e30c5

View File

@@ -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;