Commit 53b949d2 authored by Ian Craggs's avatar Ian Craggs

Fix for issue #287

parent 06ab926a
...@@ -1744,7 +1744,7 @@ static MQTTPacket* MQTTClient_waitfor(MQTTClient handle, int packet_type, int* r ...@@ -1744,7 +1744,7 @@ static MQTTPacket* MQTTClient_waitfor(MQTTClient handle, int packet_type, int* r
START_TIME_TYPE start = MQTTClient_start_clock(); START_TIME_TYPE start = MQTTClient_start_clock();
FUNC_ENTRY; FUNC_ENTRY;
if (((MQTTClients*)handle) == NULL) if (((MQTTClients*)handle) == NULL || timeout <= 0L)
{ {
*rc = MQTTCLIENT_FAILURE; *rc = MQTTCLIENT_FAILURE;
goto exit; goto exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment