service: Fix default service switching and setting gateway
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 17 Oct 2012 10:34:23 +0000 (13:34 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 18 Oct 2012 10:26:51 +0000 (13:26 +0300)
commitbcad31fc191572bca240dd84605ab52e268c38bf
treeb8c71c3344945e1b8bb5a70971332035673a713e
parent67d8629f4abc46433ea82e68b90ecb412611d6b7
service: Fix default service switching and setting gateway

Calling switch_default_service() didn't change the service order since
the services were already sorted that way. Also update the gateway
immediately.
src/service.c