| 246 | } |
| 247 | |
| 248 | void FlatBuffersServer::stopServer() |
| 249 | { |
| 250 | if ((_server != nullptr &&_server->isListening()) || (_domain != nullptr && _domain->isListening())) |
| 251 | { |
| 252 | QVectorIterator<FlatBuffersServerConnection*> i(_openConnections); |
| 253 | while (i.hasNext()) |
| 254 | { |
| 255 | const auto& client = i.next(); |
| 256 | client->forceClose(); |
| 257 | } |
| 258 | |
| 259 | // closing |
| 260 | if (_server != nullptr) |
| 261 | _server->close(); |
| 262 | |
| 263 | if (_domain != nullptr) |
| 264 | _domain->close(); |
| 265 | |
| 266 | Info(_log, "Stopped"); |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | QString FlatBuffersServer::GetSharedLut() |
| 271 | { |
nothing calls this directly
no test coverage detected