Kaydet (Commit) 9dae395f authored tarafından Oliver Bolte's avatar Oliver Bolte

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
üst 47e3768e
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment