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

Disconnnect: target should be disconnected before terminate the session because of race condition.

This commit is contained in:
Mikhail Khodjaiants 2003-04-21 17:57:02 +00:00
parent 8213a68d1c
commit b2fc9ab4ed
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-04-21 Mikhail Khodjaiants
Disconnnect: target should be disconnected before terminate the session
because of race condition.
* CDebugTarget.java
2003-04-21 Mikhail Khodjaiants
Unnecessary error logging (bug 36682).
* CValue.java

View file

@ -802,6 +802,15 @@ 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 )