******************************************************************/
#include <stdio.h>
-#include <unistd.h>
#include <string.h>
#include <jni.h>
if (0 == length)
{
OIC_LOG(DEBUG, TAG, "socket list is empty");
- sleep(1);
}
-
- uint32_t idx;
- for (idx = 0; idx < length; idx++)
+ else
{
- OIC_LOG(DEBUG, TAG, "start CAEDRNativeReadData");
- CAEDRNativeReadData(env, idx, ctx->type);
- sleep(1);
+ uint32_t idx;
+ for (idx = 0; idx < length; idx++)
+ {
+ OIC_LOG(DEBUG, TAG, "start CAEDRNativeReadData");
+ CAEDRNativeReadData(env, idx, ctx->type);
+ }
}
}