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/com/sun/star/comp | |
parent | INTEGRATION: CWS fwkfinal8 (1.5.14); FILE MERGED (diff) | |
download | core-9dae395fd06d1a5a77c74fd6175dc3dde562ee0e.tar.gz core-9dae395fd06d1a5a77c74fd6175dc3dde562ee0e.zip |
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/com/sun/star/comp')
-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; } } } |