* Resets the pools used for network clients, and the admin pool if needed. * @param close_admins Whether the admin pool has to be cleared as well. */
| 580 | * @param close_admins Whether the admin pool has to be cleared as well. |
| 581 | */ |
| 582 | static void InitializeNetworkPools(bool close_admins = true) |
| 583 | { |
| 584 | PoolTypes to_clean{PoolType::NetworkClient}; |
| 585 | if (close_admins) to_clean.Set(PoolType::NetworkAdmin); |
| 586 | PoolBase::Clean(to_clean); |
| 587 | } |
| 588 | |
| 589 | /** |
| 590 | * Close current connections. |
no test coverage detected