MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / hasClient

Method hasClient

source/game/StarWorldServerThread.cpp:118–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118bool WorldServerThread::hasClient(ConnectionId clientId) const {
119 RecursiveMutexLocker locker(m_mutex);
120 return m_clients.contains(clientId);
121}
122
123bool WorldServerThread::noClients() const {
124 RecursiveMutexLocker locker(m_mutex);

Callers 1

removeClientMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected