diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-18 10:55:35 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-18 10:55:35 +0000 |
commit | 9dae395fd06d1a5a77c74fd6175dc3dde562ee0e (patch) | |
tree | 43a3f16e579b2adbb053ffb08a8ef4f449898eec /bean | |
parent | 47e3768ee8274975b13fecaa719a640b67bba8e8 (diff) |
INTEGRATION: CWS fwkfinal8 (1.8.2); FILE MERGED
2005/04/05 14:43:08 jl 1.8.2.1: #i46616# EventListener thread was stopped with Thread.stop, which has been replaced
Diffstat (limited to 'bean')
-rw-r--r-- | bean/com/sun/star/comp/beans/OOoBean.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java index c32db6a66a9b..7a47e565dfc3 100644 --- a/bean/com/sun/star/comp/beans/OOoBean.java +++ b/bean/com/sun/star/comp/beans/OOoBean.java @@ -2,9 +2,9 @@ * * $RCSfile: OOoBean.java,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: vg $ $Date: 2005-03-23 08:59:15 $ + * last change: $Author: obo $ $Date: 2005-04-18 11:55:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1399,7 +1399,7 @@ public class OOoBean catch ( Throwable aExc ) {}; // stop thread - super.stop(); + this.interrupt(); } /// gets called when the connection dies @@ -1435,7 +1435,9 @@ public class OOoBean // continue to trying to connect the OOo instance long n = 0; - while ( iConnection != null && iConnection.getComponentContext() != null ) + while ( isInterrupted() == false + && iConnection != null + && iConnection.getComponentContext() != null ) { dbgPrint( "EventListener(" + aTag + ").running() #" + ++n ); @@ -1470,8 +1472,9 @@ public class OOoBean } catch ( java.lang.InterruptedException aExc ) { - // empty the OOoBean and cut the connection - stopOOoConnection(); + dbgPrint("EventListener(" + aTag + ") interupted."); + //thread can be ended by EvendListener.end(); + break; } } } |