service: Notify timeserver removal for previous default service
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 20 Apr 2012 13:07:33 +0000 (16:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 20 Apr 2012 13:11:40 +0000 (15:11 +0200)
src/service.c

index 5ff92b6..e919b01 100644 (file)
@@ -1266,6 +1266,8 @@ static void default_changed(void)
        if (service == current_default)
                return;
 
+       __connman_service_timeserver_changed(current_default, NULL);
+
        current_default = service;
 
        __connman_notifier_default_changed(service);