https://bugs.kde.org/show_bug.cgi?id=422682

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kactivitymanagerd/-/comm
                   |                            |it/3cbd1b7b0fda5aa57411956c
                   |                            |0cec0074163a4a8e
             Status|ASSIGNED                    |RESOLVED

--- Comment #38 from David Edmundson <k...@davidedmundson.co.uk> ---
Git commit 3cbd1b7b0fda5aa57411956c0cec0074163a4a8e by David Edmundson.
Committed on 22/10/2023 at 00:17.
Pushed by davidedmundson into branch 'master'.

Avoid race condition on startup

The activities list needs to be loaded at the time the first DBus call
is processed. Otherwise kamd will return an empty list.

updateSortedActivityList was queued as it needs to run after some other
code in the main KAMD constructor, but this was racey as we could get
DBus traffic in the meantime.

This was relatively easy to hit as this is not in the main thread where
the connection is registered and there is a blocking DBus call in the
Activies constructor.

M  +1    -2    src/service/Activities.cpp

https://invent.kde.org/plasma/kactivitymanagerd/-/commit/3cbd1b7b0fda5aa57411956c0cec0074163a4a8e

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to