| @@ -56,7 +56,7 @@ var animationThemes = [ | |||||
| } | } | ||||
| ] | ] | ||||
| var timer = null; | |||||
| var curTimer = null; | |||||
| var hbRequestCount | var hbRequestCount | ||||
| var getAdDataCount | var getAdDataCount | ||||
| @@ -358,8 +358,8 @@ codePushStatusDidChange(syncStatus) { | |||||
| } | } | ||||
| componentWillUnmount(){ | componentWillUnmount(){ | ||||
| if (timer) | |||||
| clearTimeout(timer) | |||||
| if (curTimer) | |||||
| clearTimeout(curTimer) | |||||
| } | } | ||||
| @@ -414,7 +414,7 @@ async routine() { | |||||
| this.setState({ versionInfo: versionInfo+'[E]'}); | this.setState({ versionInfo: versionInfo+'[E]'}); | ||||
| } | } | ||||
| timer = setTimeout(()=>{ | |||||
| curTimer = setTimeout(()=>{ | |||||
| this.routine(); | this.routine(); | ||||
| },1000); | },1000); | ||||
| } | } | ||||