1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 453568 - RM.done() can be called twice under heavy load at termination

Change-Id: I2a02ff21a1b4a928df29b5c95c6293e7667bc48f
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37312
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
This commit is contained in:
Marc Khouzam 2014-11-28 17:55:44 -05:00
parent b53246227a
commit f327ccd103

View file

@ -346,8 +346,9 @@ public class GDBControl extends AbstractMIControl implements IGDBControl {
public void handleCompleted() {
if (isSuccess()) {
// Cancel the time out runnable (if it hasn't run yet).
forceQuitTask.cancel(false);
rm.done();
if (forceQuitTask.cancel(false)) {
rm.done();
}
}
// else: the forceQuitTask has or will handle it.
// It is good to wait for the forceQuitTask to trigger