mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Handle exception that was being thrown in the finally clause the resulted in unbalanced locks in the target.
This commit is contained in:
parent
9c5aa180e8
commit
05767b54ba
1 changed files with 5 additions and 0 deletions
|
@ -186,7 +186,12 @@ public class Thread extends CObject implements ICDIThread {
|
|||
} catch (MIException e) {
|
||||
throw new MI2CDIException(e);
|
||||
} finally {
|
||||
try {
|
||||
target.setCurrentThread(currentThread, false);
|
||||
} catch (MI2CDIException e) {
|
||||
target.releaseTarget();
|
||||
throw e;
|
||||
}
|
||||
target.releaseTarget();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue