X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Fdiagnostic%2Fdiagnostic-manager.cpp;h=f9dc9607151d06832e49b883b80b0846d24f683f;hb=a1a554bd3dc19580c9b80dc6e4beb6bed4711e53;hp=8ed8a78736e8539a22dd3d6df06f49eaa2c6c7ae;hpb=267e52aecd92ef7891725076bacba19d2167dac2;p=apps%2Fagl-service-can-low-level.git diff --git a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp index 8ed8a787..f9dc9607 100644 --- a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp +++ b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp @@ -359,7 +359,8 @@ active_diagnostic_request_t* diagnostic_manager_t::add_request(DiagnosticRequest diagnostic_request_to_string(&entry->get_handle()->request, request_string, sizeof(request_string)); - find_and_erase(entry, non_recurring_requests_); + // Erase any existing request not already cleaned. + cleanup_request(entry, true); DEBUG(binder_interface, "%s: Added one-time diagnostic request on bus %s: %s", __FUNCTION__, bus_.c_str(), request_string);