Commit 3a44b39e authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: Also finish transactions when they error out

Otherwise they never finish and Discover gets all locked up
parent 7598fe85
......@@ -139,9 +139,9 @@ void FwupdTransaction::fwupdInstall()
if(!fwupd_client_install(m_backend->client, deviceId.toUtf8().constData(), localFile.toUtf8().constData(), install_flags, nullptr, &error))
{
m_backend->handleError(&error);
return;
}
finishTransaction();
setStatus(DoneWithErrorStatus);
} else
finishTransaction();
}
bool FwupdTransaction::remove()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment