diff options
Diffstat (limited to 'audio/sink.c')
-rw-r--r-- | audio/sink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/sink.c b/audio/sink.c index eb90c2175..730faf1db 100644 --- a/audio/sink.c +++ b/audio/sink.c @@ -303,7 +303,7 @@ static void stream_setup_complete(struct avdtp *session, struct a2dp_sep *sep, avdtp_unref(sink->session); sink->session = NULL; - if (avdtp_error_type(err) == AVDTP_ERROR_ERRNO + if (avdtp_error_category(err) == AVDTP_ERRNO && avdtp_error_posix_errno(err) != EHOSTDOWN) { DBG("connect:connect XCASE detected"); sink->retry_id = g_timeout_add_seconds(STREAM_SETUP_RETRY_TIMER, @@ -356,7 +356,7 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp if (err) { avdtp_unref(sink->session); sink->session = NULL; - if (avdtp_error_type(err) == AVDTP_ERROR_ERRNO + if (avdtp_error_category(err) == AVDTP_ERRNO && avdtp_error_posix_errno(err) != EHOSTDOWN) { DBG("connect:connect XCASE detected"); sink->retry_id = |