| 20 | } |
| 21 | |
| 22 | WorldServerThread::~WorldServerThread() { |
| 23 | m_stop = true; |
| 24 | join(); |
| 25 | |
| 26 | RecursiveMutexLocker locker(m_mutex); |
| 27 | for (auto clientId : m_worldServer->clientIds()) |
| 28 | removeClient(clientId); |
| 29 | } |
| 30 | |
| 31 | WorldId WorldServerThread::worldId() const { |
| 32 | return m_worldId; |