diff --git a/src/main/java/fr/ntr/scheduler/Scheduler.java b/src/main/java/fr/ntr/scheduler/Scheduler.java index 418fcc1..b2dc953 100644 --- a/src/main/java/fr/ntr/scheduler/Scheduler.java +++ b/src/main/java/fr/ntr/scheduler/Scheduler.java @@ -24,9 +24,9 @@ public abstract class Scheduler { }else { p.setDurationSending(ticks); } + userMax.getPacketsSent().add(p); + userMax.getPacketsToSend().remove(p); } - userMax.getPacketsSent().add(p); - userMax.getPacketsToSend().remove(p); frame[ts][sp].setUser(userMax); frame[ts][sp].setBandwidth(userMax.getBandwidthTable()[ts][sp]); }