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

Method clearClients

source/server/StarServerRconThread.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void 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
34void ServerRconThread::start() {
35 m_stop = false;

Callers

nothing calls this directly

Calls 6

makeSMutableMapIteratorFunction · 0.85
hasNextMethod · 0.45
nextMethod · 0.45
stopMethod · 0.45
isRunningMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected