fix gwt: 'join' in PausableThread

This commit is contained in:
Hannes Janetzek 2014-01-19 23:14:24 +01:00
parent ab2e82a456
commit 764a62986e
2 changed files with 5 additions and 5 deletions

View File

@ -91,11 +91,6 @@ public abstract class TileLayer<T extends TileLoader> extends Layer implements M
for (T loader : mTileLoader) { for (T loader : mTileLoader) {
loader.pause(); loader.pause();
loader.interrupt(); loader.interrupt();
try {
loader.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
loader.cleanup(); loader.cleanup();
} }
} }

View File

@ -57,6 +57,11 @@ public abstract class PausableThread extends Thread {
synchronized (this) { synchronized (this) {
super.interrupt(); super.interrupt();
} }
//try {
// join();
//} catch (InterruptedException e) {
// e.printStackTrace();
//}
} }
/** /**