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:
parent
8213a68d1c
commit
b2fc9ab4ed
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue