|
From: <ma...@us...> - 2008-04-06 22:15:20
|
Revision: 2971
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2971&view=rev
Author: matzon
Date: 2008-04-06 15:15:16 -0700 (Sun, 06 Apr 2008)
Log Message:
-----------
fixed issue with prematurely interrupting the inputstream getter thread\nmade secondary check for inputstream null
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java
Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2008-04-06 21:34:22 UTC (rev 2970)
+++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2008-04-06 22:15:16 UTC (rev 2971)
@@ -732,7 +732,7 @@
t.start();
int iterationCount = 0;
- while(is == null && iterationCount++ < 5) {
+ while(is[0] == null && iterationCount++ < 5) {
try {
t.join(1000);
} catch (InterruptedException inte) {
@@ -740,12 +740,14 @@
}
}
- try {
- t.interrupt();
- t.join();
- } catch (InterruptedException inte) {
- /* ignored */
- }
+ if(is[0] == null) {
+ try {
+ t.interrupt();
+ t.join();
+ } catch (InterruptedException inte) {
+ /* ignored */
+ }
+ }
}
if(is[0] == null) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|