aboutsummaryrefslogtreecommitdiff
path: root/src/status-provider-mc5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/status-provider-mc5.c')
-rw-r--r--src/status-provider-mc5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/status-provider-mc5.c b/src/status-provider-mc5.c
index 068c482..b254d27 100644
--- a/src/status-provider-mc5.c
+++ b/src/status-provider-mc5.c
@@ -199,13 +199,13 @@ status_provider_mc5_finalize (GObject *object)
static void
dbus_namechange (DBusGProxy * proxy, const gchar * name, const gchar * prev, const gchar * new, StatusProviderMC5 * self)
{
- g_debug("DBUS NAMECHANGE: %s %s %s", name, prev, new);
+ /* g_debug("DBUS NAMECHANGE: %s %s %s", name, prev, new); */
- if (new != NULL && g_strcmp0(new, MC5_WELL_KNOWN_NAME) == 0) {
+ if (prev[0] == '\0' && g_strcmp0(name, MC5_WELL_KNOWN_NAME) == 0) {
g_debug("MC5 Coming online");
build_eam(self);
}
- if (prev != NULL && g_strcmp0(prev, MC5_WELL_KNOWN_NAME) == 0) {
+ if (new[0] == '\0' && g_strcmp0(name, MC5_WELL_KNOWN_NAME) == 0) {
g_debug("MC5 going offline");
StatusProviderMC5Private * priv = STATUS_PROVIDER_MC5_GET_PRIVATE(self);
if (priv->manager != NULL) {