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

flatpak: warn if all threads were not cleaned up

parent 06821351
......@@ -108,10 +108,12 @@ FlatpakBackend::FlatpakBackend(QObject* parent)
FlatpakBackend::~FlatpakBackend()
{
g_cancellable_cancel(m_cancellable);
m_threadPool.waitForDone(200);
m_threadPool.clear();
for(auto inst : qAsConst(m_installations))
g_object_unref(inst);
if (!m_threadPool.waitForDone(200)) {
qDebug() << "could not kill them all" << m_threadPool.activeThreadCount();
}
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