* Notify the admin network of company updates. * @param company company of which updates are going to be sent into the admin network. */
| 953 | * @param company company of which updates are going to be sent into the admin network. |
| 954 | */ |
| 955 | void NetworkAdminCompanyUpdate(const Company *company) |
| 956 | { |
| 957 | if (company == nullptr) return; |
| 958 | |
| 959 | for (ServerNetworkAdminSocketHandler *as : ServerNetworkAdminSocketHandler::IterateActive()) { |
| 960 | if (as->update_frequency[ADMIN_UPDATE_COMPANY_INFO] != AdminUpdateFrequency::Automatic) continue; |
| 961 | |
| 962 | as->SendCompanyUpdate(company); |
| 963 | } |
| 964 | } |
| 965 | |
| 966 | /** |
| 967 | * Notify the admin network of a company to be removed (including the reason why). |
no test coverage detected