| 237 | } |
| 238 | |
| 239 | void stop_heart_thread() |
| 240 | { |
| 241 | m_b_stop = true; |
| 242 | if (m_thread_heart.joinable()) { |
| 243 | this_thread::sleep_for(std::chrono::milliseconds(20)); |
| 244 | m_thread_heart.join(); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | void close_socket() |
| 249 | { |
no test coverage detected