External system: close buildOutputInstantReader at the sync end

This commit is contained in:
Vladislav.Soroka
2018-05-04 16:10:25 +03:00
parent 939caf7cae
commit 853a2b06c8
@@ -554,6 +554,13 @@ public class ExternalSystemUtil {
ServiceManager.getService(project, SyncViewManager.class).onEvent(buildEvent);
}
}
@Override
public void onEnd(@NotNull ExternalSystemTaskId id) {
if (buildOutputInstantReader != null) {
buildOutputInstantReader.close();
}
}
};
final long startTS = System.currentTimeMillis();
resolveProjectTask.execute(indicator, ArrayUtil.prepend(taskListener, ExternalSystemTaskNotificationListener.EP_NAME.getExtensions()));