| 20 | } |
| 21 | |
| 22 | void ServerRconThread::clearClients(bool all) { |
| 23 | auto it = makeSMutableMapIterator(m_clients); |
| 24 | while (it.hasNext()) { |
| 25 | auto const& pair = it.next(); |
| 26 | auto client = pair.second; |
| 27 | if (all) |
| 28 | client->stop(); |
| 29 | else if (!client->isRunning()) |
| 30 | it.remove(); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void ServerRconThread::start() { |
| 35 | m_stop = false; |