Removed redundant availability check for incoming extension connection

This commit is contained in:
Dorving 2022-05-03 06:56:37 +02:00
parent 35748038a9
commit 0547d84d81

View File

@ -100,9 +100,6 @@ public final class NetworkExtensionsProducer implements ExtensionProducer {
// listen to incoming data from client // listen to incoming data from client
while (!extensionSocket.isClosed()) { while (!extensionSocket.isClosed()) {
if (dIn.available() < PACKET_HEADER_SIZE)
continue;
final int bodyLength = dIn.readInt() - Short.BYTES; final int bodyLength = dIn.readInt() - Short.BYTES;
final short headerId = dIn.readShort(); final short headerId = dIn.readShort();