mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
Connection works but bugged
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user