Commit 1a470696 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

fwupd: warn if threads could not be killed

parent d59c9de5
......@@ -63,7 +63,8 @@ QMap<GChecksumType, QCryptographicHash::Algorithm> FwupdBackend::gchecksumToQChr
FwupdBackend::~FwupdBackend()
{
g_cancellable_cancel(m_cancellable);
m_threadPool.waitForDone(200);
if (!m_threadPool.waitForDone(200))
qWarning("Could not stop all fwupd threads");
m_threadPool.clear();
g_object_unref(m_cancellable);
......
Markdown is supported
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