[sysime] Bug85739 && [sysime] Bug85766
Change-Id: I3d3326180acf17bcedf0599bb8e595105207c1f4
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c
old mode 100755
new mode 100644
index 5b59a18..b7a5d41
--- a/mbtk/liblynq_lib/src/lynq_time.c
+++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -85,9 +85,10 @@
static void* ntp_pthread_run()
{
- // Waitting for network connected.
- while(mbtk_net_state_get() == MBTK_NET_STATE_OFF) {
- sleep(1);
+ if (mbtk_net_state_get() == MBTK_NET_STATE_OFF)
+ {
+ printf("Network is disconnected. Set time fail.");
+ return NULL;
}
printf("Network is connected.");