Reset location->result when disconnecting.
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 25 Mar 2010 15:02:23 +0000 (16:02 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 25 Mar 2010 15:04:08 +0000 (16:04 +0100)
If result is not reset, the service state is no longer indicated after a
connect/disconnect cycle.

src/location.c

index 8b48845..2331d98 100644 (file)
@@ -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;