Make sure to always trigger disconnect on users request
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 17 Jul 2009 17:25:53 +0000 (19:25 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 17 Jul 2009 17:25:53 +0000 (19:25 +0200)
src/service.c

index fc2ff87..b389b1c 100644 (file)
@@ -626,12 +626,9 @@ static DBusMessage *disconnect_service(DBusConnection *conn,
 
        DBG("service %p", service);
 
-       if (service->pending != NULL) {
+       if (service->pending != NULL)
                reply_pending(service, ECONNABORTED);
 
-               return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
-       }
-
        service->ignore = TRUE;
 
        err = __connman_service_disconnect(service);