OSDN Git Service

Cleanup temporary device entries from storage.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 20 Apr 2009 20:05:52 +0000 (17:05 -0300)
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Wed, 22 Apr 2009 13:04:15 +0000 (10:04 -0300)
This make sure no entry is left on storage when removing a temporary and
make device_set_temporary usable for marking devices to be removed from
storage when disconnected.

src/device.c

index f7eff04..abe8adf 100644 (file)
@@ -762,7 +762,7 @@ void device_remove(struct btd_device *device, DBusConnection *conn,
        if (device->bonding)
                device_cancel_bonding(device, HCI_OE_USER_ENDED_CONNECTION);
 
-       if (!device->temporary && remove_stored)
+       if (remove_stored)
                device_remove_stored(device, conn);
 
        for (list = device->drivers; list; list = list->next) {