Update snapshot(2018-01-04)
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / enrollee / linux / enrolleewifi.c
index ccc096a..9382581 100755 (executable)
@@ -326,8 +326,11 @@ void *listeningFunc(void * data)
         result = OCProcess();
         if (result != OC_STACK_OK)
         {
-           printf("OCStack stop error");
+           printf("OCProcess error");
         }
+
+               // Sleep for 100 ms to avoid high CPU Utilization.              
+               usleep(100 * 1000); // 100 milli-seconds
     }
     return NULL;
 }