提交 a633019b 编写于 作者: I Ian Craggs

Reset reconnect intervals on MQTTAsync_reconnect #1274

上级 ab26b3ca
......@@ -949,12 +949,9 @@ int MQTTAsync_reconnect(MQTTAsync handle)
if (m->shouldBeConnected)
{
m->reconnectNow = 1;
if (m->retrying == 0)
{
m->currentIntervalBase = m->minRetryInterval;
m->currentInterval = m->minRetryInterval;
m->retrying = 1;
}
m->currentIntervalBase = m->minRetryInterval;
m->currentInterval = m->minRetryInterval;
m->retrying = 1;
rc = MQTTASYNC_SUCCESS;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册