Skip to content

Commit

Permalink
Merge pull request #11 from vACDM/bugfix/emptyPatch
Browse files Browse the repository at this point in the history
Bugfix/empty patch
  • Loading branch information
LeoKle authored Apr 23, 2023
2 parents ac3d8ee + 605c501 commit d583367
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions com/Airport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ Airport::SendType Airport::deltaEuroscopeToBackend(const std::array<types::Fligh
if (lastDelta == deltaCount)
root.removeMember("clearance");

return Airport::SendType::Patch;
return deltaCount != 0 ? Airport::SendType::Patch : Airport::SendType::None;
}
}

Expand Down Expand Up @@ -504,8 +504,6 @@ void Airport::run() {
const auto sendType = Airport::deltaEuroscopeToBackend(it->second, root);
if (Airport::SendType::None != sendType)
transmissionBuffer.push_back({ it->first, sendType, root });
else
logging::Logger::instance().log("vACDM", logging::Logger::Level::Debug, "Don't update " + it->first);

if (true == removeFlight) {
logging::Logger::instance().log("vACDM", logging::Logger::Level::Debug, "Deleting " + it->first);
Expand Down

0 comments on commit d583367

Please sign in to comment.