fix gwt: 'join' in PausableThread
This commit is contained in:
parent
ab2e82a456
commit
764a62986e
@ -91,11 +91,6 @@ public abstract class TileLayer<T extends TileLoader> extends Layer implements M
|
||||
for (T loader : mTileLoader) {
|
||||
loader.pause();
|
||||
loader.interrupt();
|
||||
try {
|
||||
loader.join();
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
loader.cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,6 +57,11 @@ public abstract class PausableThread extends Thread {
|
||||
synchronized (this) {
|
||||
super.interrupt();
|
||||
}
|
||||
//try {
|
||||
// join();
|
||||
//} catch (InterruptedException e) {
|
||||
// e.printStackTrace();
|
||||
//}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user