Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java
index b819e3cb48..da2e4e2d48 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java
@@ -183,15 +183,18 @@ public class HistoryBuilder extends TmfComponent {
}
void close(boolean deleteFiles) {
+ TmfSignal doneSig;
+
sci.dispose();
if (deleteFiles) {
hb.removeFiles();
+ /* We won't broadcast the signal if the request was cancelled */
+ } else {
+ /* Broadcast the signal saying the history is done building */
+ doneSig = new TmfStateSystemBuildCompleted(this, sci.getTrace());
+ TmfSignalManager.dispatchSignal(doneSig);
}
- /* Broadcast the signal saying the history is done building */
- TmfSignal doneSig = new TmfStateSystemBuildCompleted(this, sci.getTrace());
- TmfSignalManager.dispatchSignal(doneSig);
-
TmfSignalManager.deregister(this);
}
}

Back to the top