Re-read flags for a device after a provider's unlock routine is done

It's possible that the flags may have been altered in the provider
unlock routine.  These changes get discarded if not re-read.
This commit is contained in:
Mario Limonciello 2016-05-18 00:04:04 -05:00
parent 043bc15f6d
commit f93c00dcf4

View File

@ -217,6 +217,7 @@ fu_provider_unlock (FuProvider *provider,
}
/* update with correct flags */
flags = fu_device_get_flags (device);
fu_device_set_flags (device, flags &= ~FU_DEVICE_FLAG_LOCKED);
fu_device_set_modified (device, g_get_real_time () / G_USEC_PER_SEC);
return TRUE;