| 202 | } |
| 203 | |
| 204 | int64_t UniverseConnectionServer::lastActivityTime(ConnectionId clientId) const { |
| 205 | RecursiveMutexLocker connectionsLocker(m_connectionsMutex); |
| 206 | if (auto conn = m_connections.value(clientId)) { |
| 207 | connectionsLocker.unlock(); |
| 208 | MutexLocker connectionLocker(conn->mutex); |
| 209 | return conn->lastActivityTime; |
| 210 | } |
| 211 | throw UniverseConnectionException::format("No such client '{}' in UniverseConnectionServer::lastRemoteActivityTime", clientId); |
| 212 | } |
| 213 | |
| 214 | void UniverseConnectionServer::addConnection(ConnectionId clientId, UniverseConnection uc) { |
| 215 | RecursiveMutexLocker connectionsLocker(m_connectionsMutex); |
no test coverage detected