FIx: TCP Serialization Problem Adding outs.Reset on notify

This commit is contained in:
rubenpirreram
2026-05-13 00:11:55 +02:00
parent 9343c07004
commit 690a010248
@@ -108,6 +108,7 @@ public class ClientHandler implements Runnable {
*/
public synchronized void notifyEvent(NetworkEvent event) {
try {
out.reset();
out.writeObject(event);
} catch (IOException e) {
e.printStackTrace();
@@ -122,6 +123,7 @@ public class ClientHandler implements Runnable {
*/
public synchronized void notifyMiniModel(MiniModel game) {
try {
out.reset();
out.writeObject(game);
} catch (IOException e) {
e.printStackTrace();