OSDN Git Service

Make Adapter.CreateDevice to be cancelable.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 18 May 2009 14:52:18 +0000 (11:52 -0300)
committerJohan Hedberg <johan.hedberg@nokia.com>
Mon, 18 May 2009 15:03:34 +0000 (18:03 +0300)
Adapter.CreateDevice was unmarking temporary flag which makes
Adapter.CancelDeviceCreation to not remove the device when it disconnects.

src/adapter.c

index 1c4bec5..25ec33a 100644 (file)
@@ -1437,8 +1437,6 @@ static DBusMessage *create_device(DBusConnection *conn,
        if (!device)
                return NULL;
 
-       device_set_temporary(device, FALSE);
-
        device_browse(device, conn, msg, NULL, FALSE);
 
        return NULL;