tmf: Early-exit event search methods if monitor is cancelled
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 12 Jul 2016 00:39:46 +0000 (20:39 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 12 Jul 2016 19:54:25 +0000 (15:54 -0400)
commit1353a51a31f7e28ae28aa680233beb06ead7fb96
tree56b5b55a606b6787b5e62fd51df0722d4d5401e9
parentba50b37629a23cbfa83e42d85a48352c487d3a4c
tmf: Early-exit event search methods if monitor is cancelled

Prevents from sending a request at all if the job is already
cancelled when the methods get called.

Fixes a spurious test failure, but also covers for the case
where the job could be cancelled very quickly.

Change-Id: I7dd17fd32663ad6985ad4572541e896e9173dc7d
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/77106
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/TmfTraceUtils.java
This page took 0.026743 seconds and 5 git commands to generate.