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

Disconnect: terminate should be called from the disconnect event handler.

This commit is contained in:
Mikhail Khodjaiants 2003-04-22 14:40:15 +00:00
parent 966d0a1670
commit e51ac980e7
2 changed files with 7 additions and 10 deletions

View file

@ -1,3 +1,7 @@
2003-04-22 Mikhail Khodjaiants
Disconnect: terminate should be called from the disconnect event handler.
* CDebugTarget.java
2003-04-21 Mikhail Khodjaiants
Disconnnect: target should be disconnected before terminate the session
because of race condition.

View file

@ -802,16 +802,6 @@ public class CDebugTarget extends CDebugElement
try
{
getCDITarget().disconnect();
try
{
// wait until the target is disconnected ????
for( int i = 0; !isDisconnected() && i < 5; ++i )
Thread.sleep( 1000 );
}
catch( InterruptedException ie )
{
}
getCDISession().terminate();
}
catch( CDIException e )
{
@ -1179,8 +1169,11 @@ public class CDebugTarget extends CDebugElement
{
logError( e );
}
fireChangeEvent( DebugEvent.STATE );
/*
cleanup();
fireTerminateEvent();
*/
}
}