From 81fae31aa6881f6d0630da17d5e174d221c6020c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 7 Jun 2017 01:27:24 +0200 Subject: Fix: unsubscribe from 1 app remove diagnostic req Let the function on_no_client do the cleaning of the remaining active diagnostic requests. Change-Id: I6fc2477d53200e3475f62cd453804827172a99c0 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/binding/low-can-cb.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/CAN-binder/low-can-binding/binding/low-can-cb.cpp b/CAN-binder/low-can-binding/binding/low-can-cb.cpp index ce829b98..071f1076 100644 --- a/CAN-binder/low-can-binding/binding/low-can-cb.cpp +++ b/CAN-binder/low-can-binding/binding/low-can-cb.cpp @@ -208,8 +208,6 @@ static int subscribe_unsubscribe_diagnostic_messages(struct afb_req request, boo } else { - diag_m.cleanup_request( - diag_m.find_recurring_request(*diag_req), true); if(sig->get_supported()) {DEBUG(binder_interface, "%s: %s cancelled due to unsubscribe", __FUNCTION__, sig->get_name().c_str());} else -- cgit 1.2.3-korg