提交 122d9afc 编写于 作者: I Ian Craggs

Ensure connectionLost/retry etc is invoked after keepalive disconnect #1276

上级 76a01f5a
......@@ -2688,7 +2688,7 @@ static int MQTTAsync_disconnect_internal(MQTTAsync handle, int timeout)
void MQTTProtocol_closeSession(Clients* c, int sendwill)
{
MQTTAsync_closeSession(c, MQTTREASONCODE_SUCCESS, NULL);
nextOrClose((MQTTAsync)c->context, MQTTASYNC_DISCONNECTED, "MQTTProtocol_closeSession");
}
......
......@@ -1980,7 +1980,7 @@ static int MQTTClient_disconnect_internal(MQTTClient handle, int timeout)
*/
void MQTTProtocol_closeSession(Clients* c, int sendwill)
{
MQTTClient_closeSession(c, MQTTREASONCODE_SUCCESS, NULL);
MQTTClient_disconnect_internal((MQTTClient)c->context, 0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册