service: Do not autoconnect if service is getting removed
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 16 Apr 2012 13:21:38 +0000 (16:21 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 17 Apr 2012 10:37:37 +0000 (13:37 +0300)
commit1f29bcea3f72f461d402a6ba439f6a50ed370a36
tree4e1cd5e8eef062186871cc1fc5e1551e6c8da891
parent572921204c6da65d0bf59f90c81592abd2c977c0
service: Do not autoconnect if service is getting removed

While unplugging ethernet cable,
__connman_service_remove_from_network() is called since
related network is getting cleaned up. Therefore ethernet
service goes from online/ready to disconnected, and end
to idle state. However, at that state auto_connect() is
called (even if this service is "planned" to disappear
due to network getting cleaned up) adn we end up with
ethernet network not disappearing, nor its related
service. We only need to set the service as "ignored", so
auto_connect will ignore that particular service.
src/service.c