mirror of https://github.com/eclipse/paho.mqtt.c
parent
e3e40d1787
commit
6c7112b229
|
|
@ -1260,7 +1260,12 @@ thread_return_type WINAPI MQTTAsync_sendThread(void* n)
|
|||
int rc;
|
||||
|
||||
while (commands->count > 0)
|
||||
{
|
||||
int before = commands->count;
|
||||
MQTTAsync_processCommand();
|
||||
if (before == commands->count)
|
||||
break; /* no commands were processed, so go into a wait */
|
||||
}
|
||||
#if !defined(WIN32) && !defined(WIN64)
|
||||
rc = Thread_wait_cond(send_cond, 1);
|
||||
if ((rc = Thread_wait_cond(send_cond, 1)) != 0 && rc != ETIMEDOUT)
|
||||
|
|
|
|||
Loading…
Reference in New Issue