From 21f99c5634b6dc23830c9f75863e786e9b2327d0 Mon Sep 17 00:00:00 2001 From: willemc Date: Sat, 16 Feb 2008 04:14:57 +0100 Subject: [PATCH] [svn r324] added extra finally safty check --- .../idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java b/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java index cb88570..70fa2dc 100644 --- a/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java +++ b/src/com/idcanet/foei/core/impl/FoeiProcessRunnableWrapper.java @@ -64,7 +64,10 @@ public class FoeiProcessRunnableWrapper implements Runnable { */ public void run() { FoeiProcessFactory.bindFoeiProcess(foeiProcess); - runnable.run(); - FoeiProcessFactory.unbindFoeiProcess(); + try { + runnable.run(); + } finally { + FoeiProcessFactory.unbindFoeiProcess(); + } } } \ No newline at end of file