projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deinitialize gatt server properly
[platform/core/connectivity/bluetooth-frwk.git]
/
bt-api
/
bt-gatt-service.c
diff --git
a/bt-api/bt-gatt-service.c
b/bt-api/bt-gatt-service.c
index
0842b8a
..
6a4cc6c
100644
(file)
--- a/
bt-api/bt-gatt-service.c
+++ b/
bt-api/bt-gatt-service.c
@@
-1566,7
+1566,8
@@
BT_EXPORT_API int bluetooth_gatt_unregister_application(void)
if (err != NULL) {
BT_ERR("D-Bus API failure: errCode[%x], message[%s]",
err->code, err->message);
if (err != NULL) {
BT_ERR("D-Bus API failure: errCode[%x], message[%s]",
err->code, err->message);
- if (err->code == G_DBUS_ERROR_SERVICE_UNKNOWN) {
+ if (err->code == G_DBUS_ERROR_SERVICE_UNKNOWN ||
+ g_strrstr(err->message, BT_ERROR_DOES_NOT_EXIST)) {
g_clear_error(&err);
goto done;
}
g_clear_error(&err);
goto done;
}