Do not call __connman_service_put() twice
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Jan 2010 10:30:36 +0000 (11:30 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 13 Jan 2010 10:37:15 +0000 (02:37 -0800)
commit57ad4670ac2d5960d217bac01ddc990c9989d2e1
tree426c6c4e17febd8440e127e501061aa8a447396d
parent7d4c10e76a1ed36a9a6a1c0e29803a69aaee6063
Do not call __connman_service_put() twice

When a connection fails and service->network is not NULL, we end up calling
__connman_service_put() twice, since __connman_device_cleanup_networks()
calls it too . __connman_device_cleanup_networks() eventually calls
network_remove() from the element removal code, and that ends up calling
__connman_service_put().
src/service.c