network: Keep device->connections counter in sync
authorMohamed Abbas <mabbas@linux.intel.com>
Thu, 9 Dec 2010 00:37:12 +0000 (16:37 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 13 Dec 2010 12:11:34 +0000 (13:11 +0100)
commit0dafb0f80440a5d24b43b449bdecb5cd79b06242
tree76221e08f7aed931e234e0ac7b8dd042c57bee0d
parent272115f5e3b52bf136303d81d6b3728b0261e402
network: Keep device->connections counter in sync

Calling __connman_device_decrease_connections from set_connnected
can decrease the connections counter twice on disconnect.
src/device.c
src/network.c