X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fdiagnostic%2Fdiagnostic-manager.cpp;h=65afecfe46ee6e60ce767728fa1acbbf954dd22d;hb=82b45e3de8c92816c8080178224c5bd4be60a091;hp=55e6108409a9b6e0ecfa0f96f1f5ec17c4d847f5;hpb=97a08a7e37835f0e8619d22c83243bee26a2bff2;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/diagnostic/diagnostic-manager.cpp b/low-can-binding/diagnostic/diagnostic-manager.cpp index 55e61084..65afecfe 100644 --- a/low-can-binding/diagnostic/diagnostic-manager.cpp +++ b/low-can-binding/diagnostic/diagnostic-manager.cpp @@ -123,7 +123,7 @@ bool diagnostic_manager_t::shims_send(const uint32_t arbitration_id, const uint8 bcm_msg.frames[0] = cf; - tx_socket << bcm_msg; + tx_socket.write_message(bcm_msg); if(tx_socket) return true; return false; @@ -188,8 +188,6 @@ void diagnostic_manager_t::find_and_erase(active_diagnostic_request_t* entry, st void diagnostic_manager_t::cancel_request(active_diagnostic_request_t* entry) { entry->get_socket().close(); - if(entry->get_handle()) - delete(entry->get_handle()); delete entry; entry = nullptr; }