Fixed packet length error in Java client.

This commit is contained in:
Jason Watkins
2015-05-14 08:54:47 -07:00
parent d826bb97c6
commit 99f98d0994

View File

@@ -180,7 +180,7 @@ public class XPlaneConnect implements AutoCloseable
try
{
socket.receive(packet);
return Arrays.copyOf(buffer, buffer[4]);
return Arrays.copyOf(buffer, packet.getLength());
}
catch (SocketTimeoutException ex)
{