summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_group.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_group.cc')
-rw-r--r--webkit/appcache/appcache_group.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/appcache/appcache_group.cc b/webkit/appcache/appcache_group.cc
index a9ad808..e5511a6 100644
--- a/webkit/appcache/appcache_group.cc
+++ b/webkit/appcache/appcache_group.cc
@@ -171,7 +171,9 @@ void AppCacheGroup::RunQueuedUpdates() {
queued_observers_.RemoveObserver(host);
observers_.AddObserver(host);
}
- StartUpdateWithNewMasterEntry(host, it->second);
+
+ if (!is_obsolete())
+ StartUpdateWithNewMasterEntry(host, it->second);
}
}
@@ -189,7 +191,7 @@ bool AppCacheGroup::FindObserver(UpdateObserver* find_me,
void AppCacheGroup::ScheduleUpdateRestart(int delay_ms) {
DCHECK(!restart_update_task_);
restart_update_task_ =
- NewRunnableMethod(this, &AppCacheGroup::RunQueuedUpdates);
+ NewRunnableMethod(this, &AppCacheGroup::RunQueuedUpdates);
MessageLoop::current()->PostDelayedTask(FROM_HERE, restart_update_task_,
delay_ms);
}