Skip to content

(cherry-pick) applets/brightness: Survive plugin destruction after async wait

Jakob Petsovits requested to merge work/cherry-pick-63aa1ba8 into Plasma/6.2

Cherry-pick MR for !438 (merged).


If the plugin's main class is instantiated and destroyed in short succession, its async QCoro functions should not continue executing after getting their async D-Bus call results.

This commit checks for object aliveness after all awaited coroutines, which should fix async-related crashes in libbrightnesscontrolplugin.

Fixes plasma-mobile#404 (closed) properly.

(cherry picked from commit 63aa1ba8)

Co-authored-by: Jakob Petsovits jpetso@petsovits.com

Merge request reports

Loading