summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-11-06 23:43:51 +0100
committerlado <herrlado@gmail.com>2011-11-06 23:43:51 +0100
commit2a6d9eecc53461abc4d6313995640cb9c6384c0a (patch)
tree6d2ab92a4ccee93079a39214662613829f774e0f /vdrmanager
parent6c5214ab7b3be338ee4679334a54e4ad3e00bcff (diff)
downloadvdr-manager-2a6d9eecc53461abc4d6313995640cb9c6384c0a.tar.gz
vdr-manager-2a6d9eecc53461abc4d6313995640cb9c6384c0a.tar.bz2
better abort handling
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java
index 9553fd5..58b64f2 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java
@@ -177,7 +177,11 @@ public abstract class SvdrpClient<Result> {
informListener(SvdrpEvent.CONNECTED, null);
} catch (final Exception e) {
Log.w(TAG, e);
- informListener(SvdrpEvent.CONNECT_ERROR, null);
+ if(abort){
+ informListener(SvdrpEvent.ABORTED, null);
+ } else {
+ informListener(SvdrpEvent.CONNECT_ERROR, null);
+ }
return false;
}