Skip to content

Commit

Permalink
removed resourceManager reset
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Oct 2, 2023
1 parent ca8ffc9 commit bd4b378
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ void shutdown()
LOG_DEBUG(TAG, "Calling stop all");
features->stopAll();
}
resourceManager->dumpMemTrace();

LOG_INFO(TAG, "All features have stopped");
// terminate program
#if !defined(DISABLE_MQTT)
resourceManager->dumpMemTrace();
resourceManager->disconnect();
resourceManager.reset();
#endif
LoggerFactory::getLoggerInstance().get()->shutdown();
resourceManager.reset();
exit(0);
}

Expand Down Expand Up @@ -248,8 +248,7 @@ namespace Aws
TAG,
"Stopping instance of secure tunneling component to close tunnel thread",
feature->getName().c_str());
exit(1);
//shutdown();
shutdown();
#endif
break;
}
Expand Down

0 comments on commit bd4b378

Please sign in to comment.