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:
parent
966d0a1670
commit
e51ac980e7
2 changed files with 7 additions and 10 deletions
|
@ -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
|
2003-04-21 Mikhail Khodjaiants
|
||||||
Disconnnect: target should be disconnected before terminate the session
|
Disconnnect: target should be disconnected before terminate the session
|
||||||
because of race condition.
|
because of race condition.
|
||||||
|
|
|
@ -802,16 +802,6 @@ public class CDebugTarget extends CDebugElement
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
getCDITarget().disconnect();
|
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 )
|
catch( CDIException e )
|
||||||
{
|
{
|
||||||
|
@ -1179,8 +1169,11 @@ public class CDebugTarget extends CDebugElement
|
||||||
{
|
{
|
||||||
logError( e );
|
logError( e );
|
||||||
}
|
}
|
||||||
|
fireChangeEvent( DebugEvent.STATE );
|
||||||
|
/*
|
||||||
cleanup();
|
cleanup();
|
||||||
fireTerminateEvent();
|
fireTerminateEvent();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue