1
0
Fork 0
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:
Doug Schaefer 2007-05-17 16:54:35 +00:00
parent 9c5aa180e8
commit 05767b54ba

View file

@ -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();
}
}