projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
207d25b
)
Fix Bluetooth disconnect race condition
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 30 Aug 2009 06:28:07 +0000
(23:28 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 30 Aug 2009 06:28:07 +0000
(23:28 -0700)
plugins/bluetooth.c
patch
|
blob
|
history
diff --git
a/plugins/bluetooth.c
b/plugins/bluetooth.c
index
a0dafc6
..
69a5ebb
100644
(file)
--- a/
plugins/bluetooth.c
+++ b/
plugins/bluetooth.c
@@
-763,6
+763,9
@@
static void bluetooth_disconnect(DBusConnection *connection, void *user_data)
{
DBG("connection %p", connection);
+ if (bluetooth_devices == NULL)
+ return;
+
g_hash_table_destroy(bluetooth_devices);
bluetooth_devices = NULL;
}