--- audio/source.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/audio/source.c b/audio/source.c index a6fd8e7..9b9dab7 100644 --- a/audio/source.c +++ b/audio/source.c @@ -425,8 +425,7 @@ static DBusMessage *source_disconnect(DBusConnection *conn, return btd_error_not_connected(msg); if (source->connect || source->disconnect) - return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed", - "%s", strerror(EBUSY)); + return btd_error_busy(msg); if (source->stream_state < AVDTP_STATE_OPEN) { DBusMessage *reply = dbus_message_new_method_return(msg); -- 1.7.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html