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

Function trydisconnect

source/src/client.cpp:189–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void trydisconnect()
190{
191 if(connpeer)
192 {
193 conoutf("aborting connection attempt");
194 abortconnect();
195 return;
196 }
197 if(!curpeer)
198 {
199 conoutf("not connected");
200 return;
201 }
202 conoutf("attempting to disconnect...");
203 disconnect(0, !discmillis);
204}
205COMMANDN(disconnect, trydisconnect, "");
206
207// core game function: ingame chat

Callers 1

changemapservFunction · 0.85

Calls 3

abortconnectFunction · 0.85
disconnectFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected