| 66 | } |
| 67 | |
| 68 | Linkers::~Linkers() { |
| 69 | if (is_init_) { |
| 70 | for (size_t i = 0; i < linkers_.size(); ++i) { |
| 71 | if (linkers_[i] != nullptr) { |
| 72 | linkers_[i]->Close(); |
| 73 | } |
| 74 | } |
| 75 | TcpSocket::Finalize(); |
| 76 | Log::Info("Finished linking network in %f seconds", network_time_ * 1e-3); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void Linkers::ParseMachineList(const std::string& machines, const std::string& filename) { |
| 81 | std::vector<std::string> lines; |