summaryrefslogtreecommitdiff
path: root/serial
diff options
context:
space:
mode:
Diffstat (limited to 'serial')
-rw-r--r--serial/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/port.c b/serial/port.c
index 1d0bfc18d..0d1e60054 100644
--- a/serial/port.c
+++ b/serial/port.c
@@ -533,7 +533,7 @@ static DBusMessage *port_disconnect(DBusConnection *conn,
return btd_error_does_not_exist(msg);
if (!port->listener_id)
- return failed(msg, "Not connected");
+ return btd_error_not_connected(msg);
owner = dbus_message_get_sender(port->msg);
caller = dbus_message_get_sender(msg);