[PATCH v4 3/8] service: Unregister agent driver before removing service

Jukka Rissanen jukka.rissanen at linux.intel.com
Tue Sep 10 06:22:34 PDT 2013


Agent might have pending requests from service so we must
unregister before cleaning up service hash.
---
 src/service.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/service.c b/src/service.c
index e4d59cb..d821d1f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -6833,6 +6833,8 @@ void __connman_service_cleanup(void)
 		autoconnect_timeout = 0;
 	}
 
+	connman_agent_driver_unregister(&agent_driver);
+
 	g_list_free(service_list);
 	service_list = NULL;
 
@@ -6850,7 +6852,5 @@ void __connman_service_cleanup(void)
 	}
 	g_free(services_notify);
 
-	connman_agent_driver_unregister(&agent_driver);
-
 	dbus_connection_unref(connection);
 }
-- 
1.7.11.7




More information about the connman mailing list