manager: fix removal of device from our HT of devices

This commit is contained in:
Aleksander Morgado
2012-07-12 12:51:41 +02:00
parent ff8a962d99
commit 8ae87f5c38

View File

@@ -348,10 +348,9 @@ device_removed (MMManager *self,
*/
device = find_device_by_udev_device (self, udev_device);
if (device) {
mm_dbg ("Removing device %s",
g_udev_device_get_sysfs_path (mm_device_peek_udev_device (device)));
mm_dbg ("Removing device '%s'", mm_device_get_path (device));
mm_device_remove_modem (device);
g_hash_table_remove (self->priv->devices, device);
g_hash_table_remove (self->priv->devices, mm_device_get_path (device));
return;
}