private void ping() {
		synchronized(CONNECTION_LOCK) {
			if(isConnected) {
				try {
					long latency = getLatency();
					sendPacket(Packet.createPingPacket(clientId, latency));
					logger.finest("Pinging server [" + latency + "ms]");
				} catch (CouldNotSendPacketException e) {
					//ignore all exceptions--who cares if we had trouble sending a ping?
					logger.finest("Could not ping server: " + e.getMessage());
				}
			}
		}
	}