From: Patrik Flykt <[email protected]>
Hi,
The following patch fixes BMC#22879. The fix is made by adding a list of
pending connect and disconnect actions in struct service_entry.
Instead of adding connman_service structs directly as user data to a timeout
function, the corresponding struct service_entry is handed over to
pending_timeout_add(), which adds it to the pending_timeouts list. Thus,
if a service is removed before the timeout triggers, all timer ids are
removed from the main loop together with the service_entry.
Please review,
Patrik
Patrik Flykt (1):
session: Add a list of pending connect/disconnect actions
src/session.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 75 insertions(+), 6 deletions(-)
--
1.7.2.5
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman