aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-07 19:09:53 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-07 19:09:53 -0800
commitf17d185d277bca41e961fb365506e6ae946176fc (patch)
treeee1756feab2f6f4258c88269ddd33a5c6806d822 /src/github
parent3baf1a30fd30e61594a1fc86a2d45f2d5a00fa28 (diff)
downloaddsub-f17d185d277bca41e961fb365506e6ae946176fc.tar.gz
dsub-f17d185d277bca41e961fb365506e6ae946176fc.tar.bz2
dsub-f17d185d277bca41e961fb365506e6ae946176fc.zip
Surround cancel with try catch block
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/util/LoadingTask.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/LoadingTask.java b/src/github/daneren2005/dsub/util/LoadingTask.java
index 9ab5c86d..7faa6afe 100644
--- a/src/github/daneren2005/dsub/util/LoadingTask.java
+++ b/src/github/daneren2005/dsub/util/LoadingTask.java
@@ -62,8 +62,12 @@ public abstract class LoadingTask<T> extends BackgroundTask<T> {
getHandler().post(new Runnable() {
@Override
public void run() {
- loading.cancel();
- error(t);
+ try {
+ loading.cancel();
+ error(t);
+ } catch(Exception e) {
+ // Don't care
+ }
}
});
}