diff --git a/dist/howler.js b/dist/howler.js index a2758c70..cc2f5402 100644 --- a/dist/howler.js +++ b/dist/howler.js @@ -521,7 +521,7 @@ if (self.state === 'running' && self.ctx.state !== 'interrupted' && self._suspendTimer) { clearTimeout(self._suspendTimer); self._suspendTimer = null; - } else if (self.state === 'suspended' || self.state === 'running' && self.ctx.state === 'interrupted') { + } else if (self.state === 'suspended' || self.state === 'running' || self.state === 'suspending') { self.ctx.resume().then(function() { self.state = 'running'; @@ -535,8 +535,6 @@ clearTimeout(self._suspendTimer); self._suspendTimer = null; } - } else if (self.state === 'suspending') { - self._resumeAfterSuspend = true; } return self; diff --git a/src/howler.core.js b/src/howler.core.js index aa60cdbe..b81d28cf 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -521,7 +521,7 @@ if (self.state === 'running' && self.ctx.state !== 'interrupted' && self._suspendTimer) { clearTimeout(self._suspendTimer); self._suspendTimer = null; - } else if (self.state === 'suspended' || self.state === 'running' && self.ctx.state === 'interrupted') { + } else if (self.state === 'suspended' || self.state === 'running' || self.state === 'suspending') { self.ctx.resume().then(function() { self.state = 'running'; @@ -535,8 +535,6 @@ clearTimeout(self._suspendTimer); self._suspendTimer = null; } - } else if (self.state === 'suspending') { - self._resumeAfterSuspend = true; } return self;