Skip to content

Commit

Permalink
Instead of just exiting, set zm_terminate to true so we exit gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Aug 22, 2024
1 parent 65156ad commit 1deccb8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/zm_eventstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ void EventStream::processCommand(const CmdMsg *msg) {
break;
case CMD_QUIT :
Info("User initiated exit - CMD_QUIT");
zm_terminate = true;
break;
default :
// Do nothing, for now
Expand Down Expand Up @@ -686,12 +687,6 @@ void EventStream::processCommand(const CmdMsg *msg) {
//exit(-1);
}
}

// quit after sending a status, if this was a quit request
if (static_cast<MsgCommand>(msg->msg_data[0]) == CMD_QUIT) {
exit(0);
}

} // void EventStream::processCommand(const CmdMsg *msg)

bool EventStream::checkEventLoaded() {
Expand Down

0 comments on commit 1deccb8

Please sign in to comment.