1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Bug 377447 - 'DsfTerminateCommand' doesn't wait for the session shutdown

to complete
Added a comment.
This commit is contained in:
Mikhail Khodjaiants 2012-05-02 12:25:42 -04:00
parent 6cf930a564
commit ce09756dad

View file

@ -76,7 +76,11 @@ public class DsfTerminateCommand implements ITerminateHandler {
}
}
// Marking the request as cancelled will prevent the removal of
// the launch from the Debug view in case of "Terminate and Remove".
// the launch from the Debug view in case of "Terminate and Remove".
// This is important for multi-process sessions when "Terminate and Remove"
// is applied to one of the running processes. In this case the selected
// process will be terminated but the associated launch will not be removed
// from the Debug view.
fRequest.setStatus(result ? Status.OK_STATUS : Status.CANCEL_STATUS);
fRequest.done();
DsfSession.removeSessionEndedListener(WaitForTerminationJob.this);