Skip to content

Commit

Permalink
closing mqtt connection properly
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Oct 2, 2023
1 parent a1498ab commit f781e6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,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",
Expand Down
2 changes: 1 addition & 1 deletion source/tunneling/SecureTunnelingFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Feature *>(this);
mClientBaseNotifier->onEvent(self, ClientBaseEventNotification::FEATURE_SHUTDOWN);
Expand Down

0 comments on commit f781e6d

Please sign in to comment.