Skip to content

Commit

Permalink
fix: on "obsolete", do not trigger "stop" unless auto updates is acti…
Browse files Browse the repository at this point in the history
…ve (#9)
  • Loading branch information
gr2m committed Jan 12, 2015
1 parent c4c074e commit 31eab09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions appcache-nanny.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
// stop auto updating
//
appCacheNanny.stop = function stop() {
if (! isCheckingForUpdatesFlag) return;
clearInterval(intervalPointer);
isCheckingForUpdatesFlag = false;
trigger('stop');
Expand Down

0 comments on commit 31eab09

Please sign in to comment.