diff --git a/CMakeLists.txt b/CMakeLists.txt index 45e47305f..ac711b0ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ # The version number. set(AGENT_VERSION_MAJOR 2) -set(AGENT_VERSION_MINOR 0) +set(AGENT_VERSION_MINOR 1) set(AGENT_VERSION_PATCH 0) -set(AGENT_VERSION_BUILD 13) +set(AGENT_VERSION_BUILD 1) set(AGENT_VERSION_RC "_RC1") # This minimum version is to support Visual Studio 2017 and C++ feature checking and FetchContent diff --git a/src/mqtt/mqtt_client_impl.hpp b/src/mqtt/mqtt_client_impl.hpp index ca6d19cd8..8a15a8231 100644 --- a/src/mqtt/mqtt_client_impl.hpp +++ b/src/mqtt/mqtt_client_impl.hpp @@ -266,6 +266,7 @@ namespace mtconnect { if (m_handler && m_handler->m_connecting) m_handler->m_connecting(shared_from_this()); + derived().getClient()->set_clean_session(true); derived().getClient()->async_connect([this](mqtt::error_code ec) { if (ec) {