Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
567 B
2
Indexable
Never
for (int index = 0; index < Cache.STORE.getIndexes().length; index++) {
			if (index == 32 || index == 33 || index == 34 || index == 35 || index == 36 || index == 37 || index == 38
					|| index == 39) {
				continue;
			}
			int crc = Cache.STORE.getIndexes()[index].getCRC();
			int receivedCRC = buf.readInt();
			if (crc != receivedCRC) {
				if (!Settings.DEBUG) {
					Logger.log(this,
							"Invalid CRC at index: " + index + ", received: " + receivedCRC + ", expected: " + crc);
				}
				sendCloseReply(ctx.channel(), 6);
				return;
			}
		}