diff --git a/source/main.cpp b/source/main.cpp index 42a9e4b0..c2a0f8ac 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -243,7 +243,7 @@ namespace Aws { LOGM_INFO(TAG, "Initiate %s feature shutdown.", feature->getName().c_str()); // Stopping DC instance if secure tunnel is closed for a ST component -#if !defined(DISABLE_MQTT) +#if defined(DISABLE_MQTT) LOGM_INFO( TAG, "Stopping instance of secure tunneling component to close tunnel thread", diff --git a/source/tunneling/SecureTunnelingFeature.cpp b/source/tunneling/SecureTunnelingFeature.cpp index be13f4ff..eacdd611 100644 --- a/source/tunneling/SecureTunnelingFeature.cpp +++ b/source/tunneling/SecureTunnelingFeature.cpp @@ -272,7 +272,7 @@ namespace Aws void SecureTunnelingFeature::OnConnectionShutdown(SecureTunnelingContext *contextToRemove) { LOG_DEBUG(TAG, "SecureTunnelingFeature::OnConnectionShutdown"); -#if !defined(DISABLE_MQTT) +#if defined(DISABLE_MQTT) LOG_INFO(TAG, "Secure Tunnel closed, component thread initiating feature shutdown"); auto self = static_cast(this); mClientBaseNotifier->onEvent(self, ClientBaseEventNotification::FEATURE_SHUTDOWN);