diff --git a/brozzler/behaviors.d/facebook.js.template b/brozzler/behaviors.d/facebook.js.template index fc29e66..543bad7 100644 --- a/brozzler/behaviors.d/facebook.js.template +++ b/brozzler/behaviors.d/facebook.js.template @@ -191,6 +191,7 @@ var umbraBehaviorFinished = function() { if (umbraState.idleSince != null) { var idleTimeMs = Date.now() - umbraState.idleSince; if (idleTimeMs / 1000 > UMBRA_USER_ACTION_IDLE_TIMEOUT_SEC) { + clearInterval(umbraIntervalId); return true; } } diff --git a/brozzler/behaviors.d/instagram.js b/brozzler/behaviors.d/instagram.js index 9bc0842..ef4759d 100644 --- a/brozzler/behaviors.d/instagram.js +++ b/brozzler/behaviors.d/instagram.js @@ -137,6 +137,7 @@ var umbraInstagramBehavior = { if (this.idleSince != null) { var idleTimeMs = Date.now() - this.idleSince; if (idleTimeMs / 1000 > this.IDLE_TIMEOUT_SEC) { + clearInterval(this.intervalId); return true; } } diff --git a/brozzler/behaviors.d/marquette_edu.js b/brozzler/behaviors.d/marquette_edu.js index b3a70f1..9876a35 100644 --- a/brozzler/behaviors.d/marquette_edu.js +++ b/brozzler/behaviors.d/marquette_edu.js @@ -62,6 +62,7 @@ var umbraBehaviorFinished = function() { if (umbraState.idleSince != null) { var idleTimeMs = Date.now() - umbraState.idleSince; if (idleTimeMs / 1000 > UMBRA_USER_ACTION_IDLE_TIMEOUT_SEC) { + clearInterval(umbraIntervalID); return true; } } diff --git a/brozzler/behaviors.d/psu24.js b/brozzler/behaviors.d/psu24.js index a551961..15388fc 100644 --- a/brozzler/behaviors.d/psu24.js +++ b/brozzler/behaviors.d/psu24.js @@ -112,6 +112,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; } } diff --git a/brozzler/behaviors.d/simpleclicks.js.template b/brozzler/behaviors.d/simpleclicks.js.template index 425cecf..282c096 100644 --- a/brozzler/behaviors.d/simpleclicks.js.template +++ b/brozzler/behaviors.d/simpleclicks.js.template @@ -110,6 +110,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; } }