Revert "service: don't keep ref to a removed network"
authorPekka Pessi <Pekka.Pessi@nokia.com>
Mon, 30 Aug 2010 15:21:09 +0000 (18:21 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 8 Sep 2010 18:06:22 +0000 (20:06 +0200)
This reverts commit 485625099ef90e11099157dd72fbbebe04a74680.

src/service.c

index a6ca3dd..6bc43d2 100644 (file)
@@ -3651,12 +3651,6 @@ void __connman_service_remove_from_network(struct connman_network *network)
        if (service == NULL)
                return;
 
-       if (service->network == NULL)
-               return;
-
-       connman_network_unref(service->network);
-       service->network = NULL;
-
        __connman_service_put(service);
 }