From 71096ceee301ebc450aacb29d99190b3e158753f Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 24 May 2017 01:38:00 +0200 Subject: Close diagnostic manager socket if there isn't any requests No need to listen diagnostic responses if there isn't any subscriptions. Change-Id: I7fa48dbc3e8fb1847b8186337fe2813625894406 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/diagnostic/diagnostic-manager.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'CAN-binder/low-can-binding/diagnostic/diagnostic-manager.hpp') diff --git a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.hpp b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.hpp index d942b47b..cc446c43 100644 --- a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.hpp +++ b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.hpp @@ -71,6 +71,7 @@ public: const std::string get_bus_device_name() const; active_diagnostic_request_t* get_last_recurring_requests() const; DiagnosticShims& get_shims(); + bool socket_close(); void find_and_erase(active_diagnostic_request_t* entry, std::vector& requests_list); void cancel_request(active_diagnostic_request_t* entry); -- cgit 1.2.3-korg