call clearInterval when umbraBehaviorFinished is about to return true (see 1ef528eea7)

This commit is contained in:
Noah Levitt 2016-06-16 13:55:17 -05:00
parent 98acc8dc92
commit 1577cd8926

View File

@ -132,6 +132,7 @@ var umbraBehavior = {
if (this.idleSince != null) {
var idleTimeMs = Date.now() - this.idleSince;
if (idleTimeMs / 1000 > this.IDLE_TIMEOUT_SEC) {
clearInterval(this.intervalId);
return true;
}
}