Skip to content

power: Fix crash when power proxy becomes ready after finalize

Benjamin Berg requested to merge benzea/fix-brightness-scale-crash into master

While the code was using the pattern to cancel the operation, it was still resolving the user_data pointer even in the case the operation has been cancelled.

Fix this by simply moving the initialization.

Fixes: #1260 (closed)

Merge request reports