summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiles/audio/sink.c2
-rw-r--r--profiles/audio/source.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/profiles/audio/sink.c b/profiles/audio/sink.c
index 78a68872..750b710b 100644
--- a/profiles/audio/sink.c
+++ b/profiles/audio/sink.c
@@ -441,7 +441,7 @@ int sink_disconnect(struct btd_service *service)
if (sink->connect_id > 0) {
a2dp_cancel(sink->connect_id);
sink->connect_id = 0;
- btd_service_connecting_complete(sink->service, -ECANCELED);
+ btd_service_connecting_complete(sink->service, 0);
avdtp_unref(sink->session);
sink->session = NULL;
diff --git a/profiles/audio/source.c b/profiles/audio/source.c
index b235a7d9..43c20c2a 100644
--- a/profiles/audio/source.c
+++ b/profiles/audio/source.c
@@ -398,7 +398,7 @@ int source_disconnect(struct btd_service *service)
if (source->connect_id > 0) {
a2dp_cancel(source->connect_id);
source->connect_id = 0;
- btd_service_connecting_complete(source->service, -ECANCELED);
+ btd_service_connecting_complete(source->service, 0);
avdtp_unref(source->session);
source->session = NULL;