summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.c b/client.c
index 8958fd4..a7d71c6 100644
--- a/client.c
+++ b/client.c
@@ -156,6 +156,7 @@ void *ril_client_thread(void *data)
rc = ril_client_open(client);
if (rc < 0) {
+ RIL_LOGE("%s goto failure", __FUNCTION__);
RIL_UNLOCK();
goto failure;
}
@@ -173,15 +174,24 @@ void *ril_client_thread(void *data)
}
failure:
+ RIL_LOGE("%s failure #%d", __FUNCTION__, client->failures);
+
client->failures++;
} while (client->failures < RIL_CLIENT_RETRY_COUNT);
+ RIL_LOGE("%s Before lock", __FUNCTION__);
+
RIL_LOCK();
+ RIL_LOGE("%s inside lock", __FUNCTION__);
ril_client_close(client);
+ RIL_LOGE("%s client close done", __FUNCTION__);
+
ril_client_destroy(client);
+ RIL_LOGE("%s client destroy done", __FUNCTION__);
RIL_UNLOCK();
+ RIL_LOGE("%s outside lock", __FUNCTION__);
RIL_LOGD("Stopped %s client loop", client->name);