Skip to content

applets/brightness: Survive plugin destruction after async wait

Jakob Petsovits requested to merge work/jpetso/brightness-applet-init-crash into master

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.

Merge request reports