projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb65075
)
Handle failure of device registration
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 17 Dec 2008 15:01:42 +0000
(16:01 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 17 Dec 2008 15:01:42 +0000
(16:01 +0100)
plugins/bluetooth.c
patch
|
blob
|
history
diff --git
a/plugins/bluetooth.c
b/plugins/bluetooth.c
index
8c83a98
..
6b0f05c
100644
(file)
--- a/
plugins/bluetooth.c
+++ b/
plugins/bluetooth.c
@@
-243,7
+243,11
@@
static void add_adapter(DBusConnection *connection, const char *path)
device->name = g_path_get_basename(path);
- connman_element_register(device, NULL);
+ if (connman_element_register(device, NULL) < 0) {
+ connman_element_unref(device);
+ return;
+ }
+
device_list = g_slist_append(device_list, device);
message = dbus_message_new_method_call(BLUEZ_SERVICE, path,