Connection works but bugged

This commit is contained in:
catfoolyou
2025-02-26 14:37:16 -05:00
parent fa6d2902d7
commit 6f88142730
3 changed files with 7 additions and 6 deletions

View File

@@ -1094,15 +1094,11 @@ public class EaglerAdapterImpl2 {
@Override
public void onMessage(ByteBuffer arg0) {
System.out.println("OnMessage called (important)");
wasAbleToConnect = true;
synchronized(socketSync) {
readPackets.add(arg0.array());
}
currentException = null;
for(int i = 0; i < readPackets.size(); i++){
System.out.println(readPackets.get(i).toString());
}
}
@Override
@@ -1144,7 +1140,6 @@ public class EaglerAdapterImpl2 {
public static final void writePacket(byte[] packet) {
if(clientSocket != null && clientSocket.isOpen()) {
//System.out.println("[EaglerAdapterImpl2] - Writing packet");
clientSocket.send(ByteBuffer.wrap(packet));
}
}