1
0
Fork 0

Fix unneeded return code. (#9853)

This commit is contained in:
Max Neunhöffer 2019-08-30 08:44:07 +02:00 committed by GitHub
parent 139c5d3839
commit 0599a1c79c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1976,12 +1976,13 @@ void Agent::emptyCbTrashBin() {
// queue + write.
auto* scheduler = SchedulerFeature::SCHEDULER;
if (scheduler != nullptr) {
scheduler->queue(RequestLane::INTERNAL_LOW, [envelope = std::move(envelope)] {
bool ok = scheduler->queue(RequestLane::INTERNAL_LOW, [envelope = std::move(envelope)] {
auto* agent = AgencyFeature::AGENT;
if (!application_features::ApplicationServer::isStopping() && agent) {
agent->write(envelope);
}
});
LOG_TOPIC_IF("52461", DEBUG, Logger::AGENCY, !ok) << "Could not schedule callback cleanup job.";
}
}