Fixed packet length error in Java client.
This commit is contained in:
@@ -180,7 +180,7 @@ public class XPlaneConnect implements AutoCloseable
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
socket.receive(packet);
|
socket.receive(packet);
|
||||||
return Arrays.copyOf(buffer, buffer[4]);
|
return Arrays.copyOf(buffer, packet.getLength());
|
||||||
}
|
}
|
||||||
catch (SocketTimeoutException ex)
|
catch (SocketTimeoutException ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user