From 0a03b1f9132d03e87972807a163a61fbd368ebbb Mon Sep 17 00:00:00 2001 From: Brett Date: Sat, 15 Apr 2023 21:16:31 -0400 Subject: [PATCH] fix spam --- Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java b/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java index 605af42..2436141 100644 --- a/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java +++ b/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java @@ -167,6 +167,7 @@ public class Server implements Runnable { if (!sent.isAcknowledged() && sent.getTimeSinceSent().get() > MAX_PACKET_ACK_TIME_SECONDS) { System.out.println("The client did not acknowledge our message, did they receive it?"); sendMessage(sent); + removes.add(message.getKey()); } } for (Long l : removes)