aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-01 10:20:36 -0600
committerTed Gould <ted@gould.cx>2009-12-01 10:20:36 -0600
commit824d1e8bc5bbc240140d6c2cea7246308c563fd8 (patch)
tree29403708ea75350748a636494b47b868da687587 /libindicator
parent088eff44dd923a80d2bc357be72b9ace0c97d06e (diff)
downloadlibayatana-indicator-824d1e8bc5bbc240140d6c2cea7246308c563fd8.tar.gz
libayatana-indicator-824d1e8bc5bbc240140d6c2cea7246308c563fd8.tar.bz2
libayatana-indicator-824d1e8bc5bbc240140d6c2cea7246308c563fd8.zip
Unwatching if we have mismatched version.
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-service-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c
index 956eb90..d7e54bd 100644
--- a/libindicator/indicator-service-manager.c
+++ b/libindicator/indicator-service-manager.c
@@ -257,6 +257,7 @@ watch_cb (DBusGProxy * proxy, gint service_version, GError * error, gpointer use
if (service_version != INDICATOR_SERVICE_VERSION) {
g_warning("Service is using a different version of the service interface. Expecting %d and got %d.", INDICATOR_SERVICE_VERSION, service_version);
+ org_ayatana_indicator_service_un_watch_async(priv->service_proxy, unwatch_cb, NULL);
return;
}