IDEA-104500 Gradle: Allow to reuse common logic for other external systems

Don't process orphan external modules when the project is already closed
This commit is contained in:
Denis.Zhdanov
2013-05-13 09:02:28 +04:00
parent 0072f5f3f4
commit 1101290e39
@@ -199,7 +199,7 @@ public class ExternalSystemUtil {
@Override
public void onFailure(@NotNull String errorMessage, @Nullable String errorDetails) {
if (--myCounter <= 0) {
if (--myCounter <= 0 && !project.isDisposed()) {
processOrphanModules();
}
}