From 7deea36d8fa667741334c511d3188d53b5f3e6fb Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 25 Mar 2010 16:02:23 +0100 Subject: [PATCH] Reset location->result when disconnecting. If result is not reset, the service state is no longer indicated after a connect/disconnect cycle. --- src/location.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/location.c b/src/location.c index 8b48845..2331d98 100644 --- a/src/location.c +++ b/src/location.c @@ -257,6 +257,8 @@ int __connman_location_finish(struct connman_service *service) if (location == NULL) return -EINVAL; + location->result = CONNMAN_LOCATION_RESULT_UNKNOWN; + if (location->driver) { location->driver->finish(location); location->driver = NULL; -- 2.7.4