From 853a2b06c800bedbdb27ef9db2b3fe60f38645aa Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Fri, 4 May 2018 16:08:20 +0300 Subject: [PATCH] External system: close buildOutputInstantReader at the sync end --- .../openapi/externalSystem/util/ExternalSystemUtil.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java index 8ae8bc9544d6..34b1e8c40851 100644 --- a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java +++ b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java @@ -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()));