summaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-bluez.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/bluetooth-bluez.c')
-rw-r--r--binding/bluetooth-bluez.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binding/bluetooth-bluez.c b/binding/bluetooth-bluez.c
index 60be18a..fa6d34b 100644
--- a/binding/bluetooth-bluez.c
+++ b/binding/bluetooth-bluez.c
@@ -623,9 +623,11 @@ gboolean bluetooth_autoconnect(gpointer data)
reply = bluez_call(ns, "device", path, "Connect", NULL, NULL);
g_free(path);
- if (reply)
- return FALSE;
+ if (!reply)
+ continue;
g_variant_unref(reply);
+
+ return FALSE;
}
}
}