mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50:52 +01:00
Removed redundant availability check for incoming extension connection
This commit is contained in:
parent
35748038a9
commit
0547d84d81
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user