projects
/
platform
/
core
/
api
/
bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
934e421
)
Add the init status check to "GATT server start"
61/76561/1
author
Hyuk Lee
<hyuk0512.lee@samsung.com>
Fri, 24 Jun 2016 08:00:31 +0000
(17:00 +0900)
committer
Hyuk Lee
<hyuk0512.lee@samsung.com>
Fri, 24 Jun 2016 08:00:31 +0000
(17:00 +0900)
Change-Id: I40f6fe61108d5d278d2be64b88aaedaa93700dee
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
src/bluetooth-gatt.c
patch
|
blob
|
history
diff --git
a/src/bluetooth-gatt.c
b/src/bluetooth-gatt.c
index be65794fb6348f58c7a17ff30410164344972626..7addffdc1474b6e911ae965b2e123754f9c898c9 100644
(file)
--- a/
src/bluetooth-gatt.c
+++ b/
src/bluetooth-gatt.c
@@
-2293,12
+2293,17
@@
int bt_gatt_server_start(void)
int ret = BT_ERROR_NONE;
BT_CHECK_GATT_SUPPORT();
+ BT_CHECK_INIT_STATUS();
+ BT_CHECK_GATT_SERVER_INIT_STATUS();
if (!is_gatt_server_started) {
ret = bluetooth_gatt_register_application();
if (ret != BT_ERROR_NONE)
+ {
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), ret);
+ return ret;
+ }
is_gatt_server_started = true;
return ret;