Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Fix for #72
Browse files Browse the repository at this point in the history
  • Loading branch information
nikDemyankov committed Dec 29, 2015
1 parent ceee58d commit ef28ae6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ public void run() {
});

// fetch update when we are initialized
if (chcpXmlConfig.isAutoDownloadIsAllowed()) {
if (chcpXmlConfig.isAutoDownloadIsAllowed() &&
!UpdatesInstaller.isInstalling() && !UpdatesLoader.isExecuting()) {
fetchUpdate(null);
}
}
Expand Down Expand Up @@ -507,7 +508,10 @@ public void onEvent(AssetsInstalledEvent event) {
PluginResult result = PluginResultHelper.pluginResultFromEvent(event);
sendMessageToDefaultCallback(result);

fetchUpdate(null);
if (chcpXmlConfig.isAutoDownloadIsAllowed() &&
!UpdatesInstaller.isInstalling() && !UpdatesLoader.isExecuting()) {
fetchUpdate(null);
}
}

/**
Expand Down

0 comments on commit ef28ae6

Please sign in to comment.