Skip to content

device-monitor: fix device listing without --follow

In !427 (merged), I removed the call to get_devices in order to always print added devices from the bus handler, however this requires the main loop to run until all pending messages have been consumed.

This commit achieves this by always running the main loop, and simply adding an idle source to quit it in the non --follow case.

Merge request reports

Loading