Skip to content

Commit

Permalink
testing process termination
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Oct 3, 2023
1 parent 76ed115 commit 7eb9d8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ int main(int argc, char *argv[])
LOG_WARN(TAG, "Unable to append current working directory to PATH environment variable.");
}

#if defined(DISABLE_MQTT)
deviceClientAbort("Manually ending the process", EXIT_SUCCESS);
#endif

#if !defined(DISABLE_MQTT)
/**
* init() is currently responsible for making sure only 1 instance of Device Client is running at a given time.
Expand Down

0 comments on commit 7eb9d8f

Please sign in to comment.