Skip to content

Commit

Permalink
update job execution
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 5, 2023
1 parent e3bc055 commit 8e1edd5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions samples/jobs/mqtt5_job_execution/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,11 @@ int main(int argc, char *argv[])

// Wait just a little bit to let the console print
std::this_thread::sleep_for(std::chrono::milliseconds(500));

// Disconnect
if (connection->Disconnect())
{
connectionClosedPromise.get_future().wait();
}

return 0;
}

Expand Down Expand Up @@ -342,17 +340,4 @@ void updateJobExecution(
jobsClient.PublishUpdateJobExecution(publishRequest, AWS_MQTT_QOS_AT_LEAST_ONCE, publishHandler);

pendingExecutionPromise.get_future().wait();
}
}

// Wait just a little bit to let the console print
std::this_thread::sleep_for(std::chrono::milliseconds(500));

// Disconnect
if (client->Stop())
{
stoppedPromise.get_future().wait();
}

return 0;
}

0 comments on commit 8e1edd5

Please sign in to comment.