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:
parent
b53246227a
commit
f327ccd103
1 changed files with 3 additions and 2 deletions
|
@ -346,9 +346,10 @@ 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);
|
||||
if (forceQuitTask.cancel(false)) {
|
||||
rm.done();
|
||||
}
|
||||
}
|
||||
// else: the forceQuitTask has or will handle it.
|
||||
// It is good to wait for the forceQuitTask to trigger
|
||||
// to leave enough time for the interrupt() to complete.
|
||||
|
|
Loading…
Add table
Reference in a new issue