* multi-map demos*/
/*-------------------------------------------------------------------*/
public synchronized void disconnect(boolean stopRecording)
{
ClientPacket packet = null;
ClientCommand message = null;
if(dm2Recorder.isRecording() && stopRecording)
dm2Recorder.stopRecording();
if(connected)
{
inGame = false;
message = new ClientCommand(clientID, "disconnect");
packet = new ClientPacket(message);
communicator.sendUnreliable(packet);
communicator.disconnect();
connected = false;
}