diff --git a/src/scan.c b/src/scan.c index 7eaae619..bfd0c2a5 100644 --- a/src/scan.c +++ b/src/scan.c @@ -201,6 +201,9 @@ static void start_next_scan_request(void *userdata) sc->start_cmd_id = scan_send_start(&sr->start_cmd, scan_done, sc); if (!sc->start_cmd_id) { + if (sr->trigger) + sr->trigger(-EIO, sr->userdata); + if (sr->destroy) sr->destroy(sr->userdata);