Fix PropertyChanged for disconnect event
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 19 Jan 2010 18:05:17 +0000 (16:05 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 Jan 2010 18:22:49 +0000 (10:22 -0800)
commit83539f0e55805d018b45f5e205f81b9327926644
tree9cf6f1e0ebb5fa472a8149638c7a3e61fdac176d
parente35e36efd75a9cd8f2f28e5403125f77b25726ce
Fix PropertyChanged for disconnect event

When connman_network_set_connected() is called with 'connected=FALSE',
network->connected is already FALSE, causing signal not being sent.

So, in __connman_network_disconnet() instead of directly assigning
network->connected to FALSE, call connman_network_set_connected()
which will deal with properly setting it and sending the signal.
src/network.c