Fix: unsubscribe from 1 app remove diagnostic req
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 6 Jun 2017 23:27:24 +0000 (01:27 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 6 Jun 2017 23:27:24 +0000 (01:27 +0200)
Let the function on_no_client do the cleaning of the remaining active
diagnostic requests.

Change-Id: I6fc2477d53200e3475f62cd453804827172a99c0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/binding/low-can-cb.cpp

index ce829b9..071f107 100644 (file)
@@ -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