diff options
author | lado <herrlado@gmail.com> | 2011-10-31 10:02:44 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-10-31 10:02:44 +0100 |
commit | 0833bf11afe593976cb7c78a1d986be277f543de (patch) | |
tree | e22f96e2c35377b871d6f62348d537be34462845 | |
parent | f45b850d6fd37d6eea4fc1c0c900b9536f58b86d (diff) | |
download | vdr-manager-0833bf11afe593976cb7c78a1d986be277f543de.tar.gz vdr-manager-0833bf11afe593976cb7c78a1d986be277f543de.tar.bz2 |
handle more finish events
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java b/vdrmanager/src/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java index daf7d73..09c796f 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java @@ -18,10 +18,14 @@ public abstract class AsyncProgressTask<Result> { public void svdrpEvent(final SvdrpEvent event, final Result result) { super.svdrpEvent(event, result); switch (event) { + case ABORTED: + case CONNECT_ERROR: + case ERROR: + case LOGIN_ERROR: case FINISHED_ABNORMALY: case FINISHED_SUCCESS: - case ABORTED: - AsyncProgressTask.this.finished(); + case CACHE_HIT: + AsyncProgressTask.this.finished(event); break; } } @@ -52,5 +56,5 @@ public abstract class AsyncProgressTask<Result> { task.run(); } - public abstract void finished(); + public abstract void finished(SvdrpEvent event); } |