Skip to content

Commit 9d56cd4

Browse files
committed
Don't delete mqttSecureClient - see below:
This prevents the crash reported in #335. My theory is: mqttClient uses mqttSecureClient When we delete mqttClient, we are possibly also deleting mqttSecureClient but the pointer isn't getting set to NULL I'll investigate...
1 parent adf20f8 commit 9d56cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void mqttClientStop(bool shutdown)
443443
{
444444
if (settings.debugMqttClientState)
445445
systemPrintln("Freeing mqttSecureClient");
446-
delete mqttSecureClient;
446+
//delete mqttSecureClient;
447447
mqttSecureClient = nullptr;
448448
reportHeapNow(settings.debugMqttClientState);
449449
}

0 commit comments

Comments
 (0)