OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f481e7f
)
Fix bug which prevent headset driver to load a second time.
author
Luiz Augusto von Dentz
<luiz.dentz@openbossa.org>
Tue, 28 Apr 2009 16:53:48 +0000
(13:53 -0300)
committer
Luiz Augusto von Dentz
<luiz.dentz@openbossa.org>
Tue, 28 Apr 2009 17:01:50 +0000
(14:01 -0300)
headset driver was not closing its socket properly when an adapter is removed
which makes kernel to assume the address is already in use.
audio/manager.c
patch
|
blob
|
history
diff --git
a/audio/manager.c
b/audio/manager.c
index
de05ebd
..
85add42
100644
(file)
--- a/
audio/manager.c
+++ b/
audio/manager.c
@@
-820,6
+820,7
@@
static void headset_server_remove(struct btd_adapter *adapter)
}
if (adp->hsp_ag_server) {
+ g_io_channel_shutdown(adp->hsp_ag_server, TRUE, NULL);
g_io_channel_unref(adp->hsp_ag_server);
adp->hsp_ag_server = NULL;
}
@@
-830,6
+831,7
@@
static void headset_server_remove(struct btd_adapter *adapter)
}
if (adp->hfp_ag_server) {
+ g_io_channel_shutdown(adp->hfp_ag_server, TRUE, NULL);
g_io_channel_unref(adp->hfp_ag_server);
adp->hfp_ag_server = NULL;
}