Skip to content
Commit 34d1a245 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Avoid synchronous DBus calls for devices list

Doing a DBus call each time a Device instance is created is costly,
and unnecessary. It is sufficient to query the devices once, and track
added and removed devices using the respective DBus signals.

This also fixes a race when a device is added and removed in a short
time frame. As the frontend calls the backend `createDevice` method,
asking UPower again from the backend may invalidate the just added
device.
parent d5556974
Pipeline #364332 passed with stage
in 1 minute and 55 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment