From 2a6d9eecc53461abc4d6313995640cb9c6384c0a Mon Sep 17 00:00:00 2001 From: lado Date: Sun, 6 Nov 2011 23:43:51 +0100 Subject: better abort handling --- .../src/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vdrmanager') 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 { 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; } -- cgit v1.2.3