From 0833bf11afe593976cb7c78a1d986be277f543de Mon Sep 17 00:00:00 2001 From: lado Date: Mon, 31 Oct 2011 10:02:44 +0100 Subject: handle more finish events --- .../src/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java | 10 +++++++--- 1 file 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 { 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 { task.run(); } - public abstract void finished(); + public abstract void finished(SvdrpEvent event); } -- cgit v1.2.3