Corrected secure TCP_DISCONNECTING

develop
Sreekanth 2016-03-31 10:19:16 +05:30
rodzic 1843a1efb4
commit 90e316cc1e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -604,7 +604,7 @@ MQTT_Task(os_event_t *e)
case TCP_RECONNECT_DISCONNECTING:
if (client->security) {
#ifdef MQTT_SSL_ENABLE
espconn_secure_connect(client->pCon);
espconn_secure_disconnect(client->pCon);
#else
INFO("TCP: Do not support SSL\r\n");
#endif
@ -840,4 +840,4 @@ void ICACHE_FLASH_ATTR
MQTT_OnTimeout(MQTT_Client *mqttClient, MqttCallback timeoutCb)
{
mqttClient->timeoutCb = timeoutCb;
}
}