service: Mark service as failed if connect fails
authorPekka Pessi <Pekka.Pessi@nokia.com>
Wed, 26 Jan 2011 14:50:38 +0000 (16:50 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 27 Jan 2011 10:08:51 +0000 (11:08 +0100)
commit5af5021b29d4bdf702bfd066334e097bbd064ed3
tree168e60575429b834d90450d4c11dc429cd4d5922
parent4fb6e0718f4f42f8a7c20df4096c8eadb6c0f2e2
service: Mark service as failed if connect fails

The connman_network/provider_connect() could fail in two different ways,
returning an error code or setting the service state to failed.

Ethernet, WiMax, Bluetooth, VPN, Cellular and WiFi services now get
marked as failed if connect() fails with error code, too. This makes
connman_service_clear_error() and the autoconnect procedure to behave in
consistent manner.
src/service.c