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:
ef2d3dd
)
android: Detect adapter removal in daemon and exit
author
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 23 Oct 2013 07:20:30 +0000
(10:20 +0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 23 Oct 2013 07:20:30 +0000
(10:20 +0300)
android/main.c
patch
|
blob
|
history
diff --git
a/android/main.c
b/android/main.c
index
5e297f7
..
e13e5b0
100644
(file)
--- a/
android/main.c
+++ b/
android/main.c
@@
-382,6
+382,12
@@
static void mgmt_index_removed_event(uint16_t index, uint16_t length,
const void *param, void *user_data)
{
DBG("index %u", index);
+
+ if (index != adapter_index)
+ return;
+
+ error("Adapter was removed. Exiting.");
+ g_main_loop_quit(event_loop);
}
static void read_index_list_complete(uint8_t status, uint16_t length,