Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
cd0d8327
Commit
cd0d8327
authored
Jan 12, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
flatpak: warn if all threads were not cleaned up
parent
06821351
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
View file @
cd0d8327
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment