fixed issue with prematurely interrupting the inputstream getter thread\nmade secondary check for inputstream null
This commit is contained in:
parent
bf25259325
commit
3b5c704383
|
@ -732,7 +732,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
t.start();
|
t.start();
|
||||||
|
|
||||||
int iterationCount = 0;
|
int iterationCount = 0;
|
||||||
while(is == null && iterationCount++ < 5) {
|
while(is[0] == null && iterationCount++ < 5) {
|
||||||
try {
|
try {
|
||||||
t.join(1000);
|
t.join(1000);
|
||||||
} catch (InterruptedException inte) {
|
} catch (InterruptedException inte) {
|
||||||
|
@ -740,11 +740,13 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if(is[0] == null) {
|
||||||
t.interrupt();
|
try {
|
||||||
t.join();
|
t.interrupt();
|
||||||
} catch (InterruptedException inte) {
|
t.join();
|
||||||
/* ignored */
|
} catch (InterruptedException inte) {
|
||||||
|
/* ignored */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue