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
498e6d6e
Commit
498e6d6e
authored
Apr 03, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
flatpak: Don't issue commands when cancelled
BUG: 404622
parent
353429dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
View file @
498e6d6e
...
...
@@ -808,6 +808,10 @@ void FlatpakBackend::loadRemoteUpdates(FlatpakInstallation* installation)
acquireFetching
(
true
);
fw
->
setFuture
(
QtConcurrent
::
run
(
&
m_threadPool
,
[
installation
,
this
]()
->
GPtrArray
*
{
g_autoptr
(
GError
)
localError
=
nullptr
;
if
(
g_cancellable_is_cancelled
(
m_cancellable
))
{
qWarning
()
<<
"don't issue commands after cancelling"
;
return
{};
}
GPtrArray
*
refs
=
flatpak_installation_list_installed_refs_for_update
(
installation
,
m_cancellable
,
&
localError
);
if
(
!
refs
)
{
qWarning
()
<<
"Failed to get list of installed refs for listing updates: "
<<
localError
->
message
;
...
...
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