mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 11:59:14 +00:00
trivial: Fix two warnings when recovering a device from a failed update
This commit is contained in:
parent
e90367d854
commit
b4e3e1fcc6
@ -2866,10 +2866,12 @@ fu_engine_write_firmware(FuEngine *self,
|
||||
g_autoptr(GError) error_cleanup = NULL;
|
||||
|
||||
/* attack back into runtime then cleanup */
|
||||
fu_progress_reset(progress);
|
||||
if (!fu_plugin_runner_attach(plugin, device, progress, &error_attach)) {
|
||||
g_warning("failed to attach device after failed update: %s",
|
||||
error_attach->message);
|
||||
}
|
||||
fu_progress_reset(progress);
|
||||
if (!fu_engine_cleanup(self, device_id, progress, flags, &error_cleanup)) {
|
||||
g_warning("failed to update-cleanup after failed update: %s",
|
||||
error_cleanup->message);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user