From b9172ae5c5af7c54dba454b4312cd13e70d9f39b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 10 Jun 2022 12:55:14 +0100 Subject: [PATCH] logitech-bulkcontroller: Reset the progress counter when required --- .../logitech-bulkcontroller/fu-logitech-bulkcontroller-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/logitech-bulkcontroller/fu-logitech-bulkcontroller-device.c b/plugins/logitech-bulkcontroller/fu-logitech-bulkcontroller-device.c index 763675d51..c66ce84f3 100644 --- a/plugins/logitech-bulkcontroller/fu-logitech-bulkcontroller-device.c +++ b/plugins/logitech-bulkcontroller/fu-logitech-bulkcontroller-device.c @@ -833,6 +833,7 @@ fu_logitech_bulkcontroller_device_write_firmware(FuDevice *device, &error_local)) { no_response_count++; g_debug("no response for device info request %u", no_response_count); + fu_progress_reset(fu_progress_get_child(progress)); continue; } @@ -868,6 +869,7 @@ fu_logitech_bulkcontroller_device_write_firmware(FuDevice *device, * explicitly now */ g_usleep(G_USEC_PER_SEC); + fu_progress_reset(fu_progress_get_child(progress)); continue; }