Commit b69d1ad2 authored by Ian Craggs's avatar Ian Craggs

Fix for issue #409

parent 4cf648db
...@@ -1398,6 +1398,11 @@ static int MQTTAsync_processCommand(void) ...@@ -1398,6 +1398,11 @@ static int MQTTAsync_processCommand(void)
Log(TRACE_MIN, -1, "Calling command failure for client %s", command->client->c->clientID); Log(TRACE_MIN, -1, "Calling command failure for client %s", command->client->c->clientID);
(*(command->command.onFailure))(command->command.context, NULL); (*(command->command.onFailure))(command->command.context, NULL);
} }
if (command->command.type == CONNECT)
{
command->client->connect = command->command;
MQTTAsync_startConnectRetry(command->client);
}
MQTTAsync_freeCommand(command); /* free up the command if necessary */ MQTTAsync_freeCommand(command); /* free up the command if necessary */
} }
} }
......
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