Only disconnect the specific service if asked for it
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2009 07:16:32 +0000 (00:16 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2009 07:16:32 +0000 (00:16 -0700)
src/service.c

index a6ee992..789cc9d 100644 (file)
@@ -379,13 +379,8 @@ static DBusMessage *disconnect_service(DBusConnection *conn,
        }
 
        if (service->network != NULL) {
-               struct connman_device *device;
                int err;
 
-               device = connman_network_get_device(service->network);
-               if (device != NULL)
-                       __connman_device_disconnect(device);
-
                err = __connman_network_disconnect(service->network);
                if (err < 0 && err != -EINPROGRESS)
                        return __connman_error_failed(msg, -err);