diff --git a/android/gatt.c b/android/gatt.c
index 3019cd5..04972a4 100644
--- a/android/gatt.c
+++ b/android/gatt.c
}
} else {
/* Refresh service cache if only partial search was performed */
- if (conn->device->partial_srvc_search)
+ if (conn->device->partial_srvc_search) {
srvc_search_success = search_dev_for_srvc(conn, NULL);
- else
+ if (!srvc_search_success) {
+ status = HAL_STATUS_FAILED;
+ goto reply;
+ }
+ } else
queue_foreach(conn->device->services,
send_client_primary_notify,
INT_TO_PTR(cmd->conn_id));