diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index 0397e86..cba4634 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -1473,6 +1473,7 @@ int CMMDVMHost::run() if (m_mqtt != nullptr) { m_mqtt->close(); delete m_mqtt; + m_mqtt = nullptr; } return 0;