MCPcopy Create free account
hub / github.com/assaultcube/AC / cleanupclient

Function cleanupclient

source/src/client.cpp:288–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286COMMAND(current_version, "s");
287
288void cleanupclient()
289{
290 abortconnect();
291 disconnect(1);
292 if(clienthost)
293 {
294 enet_host_destroy(clienthost);
295 clienthost = NULL;
296 }
297}
298
299// collect c2s messages conveniently
300

Callers 1

cleanupFunction · 0.85

Calls 3

abortconnectFunction · 0.85
disconnectFunction · 0.85
enet_host_destroyFunction · 0.85

Tested by

no test coverage detected