Skip to content
  • Mathieu Duponchelle's avatar
    device-monitor: fix device listing without --follow · 0e1da383
    Mathieu Duponchelle authored and Mathieu Duponchelle's avatar Mathieu Duponchelle committed
    In !427, 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.
    0e1da383