Hi Marcel,

>> @@ -3644,6 +3644,12 @@ 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);
>>  }
>
> actually this patch causes a lot problems with WiFi. I see constant
> crashes on disconnects.
>
> I think that I have to revert this. The backtraces make no sense, but
> without this patch it runs stable as it used to be.

It seems to me that most service methods assume there is valid network
pointer, so my patch is not probably a very good idea.

It might be better to remove and free the service once the network (or
underlying device) is removed.

-- 
Pekka.Pessi mail at nokia.com
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to