From 9029fe04470d229b0950b2e60df377a0d1aa6d8b Mon Sep 17 00:00:00 2001 From: Knox Date: Sun, 27 May 2018 23:00:25 +0800 Subject: [PATCH] fix fireball/issues/7369 (#2741) --- cocos2d/audio/CCAudio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/audio/CCAudio.js b/cocos2d/audio/CCAudio.js index c6415d251c..3208376d92 100644 --- a/cocos2d/audio/CCAudio.js +++ b/cocos2d/audio/CCAudio.js @@ -201,7 +201,7 @@ Audio.State = { }; proto.resume = function () { - if (!this._element || this._element.currentTime === 0) return; + if (!this._element || this._state === Audio.State.PLAYING) return; this._bindEnded(); this._element.play(); this.emit('resume');