Merge pull request #42 from fishjimi/master

Remove redundant blocking in "MQTTClient.c"
This commit is contained in:
Justin Kim
2018-05-15 16:25:28 +09:00
committed by GitHub

View File

@ -295,14 +295,10 @@ int MQTTYield(MQTTClient* c, int timeout_ms)
TimerInit(&timer);
TimerCountdownMS(&timer, timeout_ms);
do
{
if (cycle(c, &timer) == FAILURE)
{
rc = FAILURE;
break;
}
} while (!TimerIsExpired(&timer));
return rc;
}