public void Close() { server.RemovePlayer(this); //ConnHelper.CloseConnection(mysqlConn); if (clientSocket != null) { clientSocket.Close(); } /*if (room != null) * { * room.QuitRoom(this); * }*/ }