mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
call clearInterval when umbraBehaviorFinished is about to return true (see 1ef528eea7)
This commit is contained in:
parent
98acc8dc92
commit
1577cd8926
@ -132,6 +132,7 @@ var umbraBehavior = {
|
|||||||
if (this.idleSince != null) {
|
if (this.idleSince != null) {
|
||||||
var idleTimeMs = Date.now() - this.idleSince;
|
var idleTimeMs = Date.now() - this.idleSince;
|
||||||
if (idleTimeMs / 1000 > this.IDLE_TIMEOUT_SEC) {
|
if (idleTimeMs / 1000 > this.IDLE_TIMEOUT_SEC) {
|
||||||
|
clearInterval(this.intervalId);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user