ExternalSystemProjectsWatcher: release batch file change subscription on the project close

This commit is contained in:
Vladislav.Soroka
2017-05-17 14:58:42 +03:00
parent 10e3f6a870
commit 30408540a6
@@ -121,7 +121,7 @@ public class ExternalSystemProjectsWatcherImpl extends ExternalSystemTaskNotific
myNotificationMap = ContainerUtil.newConcurrentMap();
ApplicationManager.getApplication().getMessageBus().connect().subscribe(BatchFileChangeListener.TOPIC, new BatchFileChangeListener() {
ApplicationManager.getApplication().getMessageBus().connect(myProject).subscribe(BatchFileChangeListener.TOPIC, new BatchFileChangeListener() {
@Override
public void batchChangeStarted(Project project) {
myRefreshRequestsQueue.suspend();