diff --git a/src/commandSystem/EventQueue.java b/src/commandSystem/EventQueue.java index 5e24830..e903d45 100644 --- a/src/commandSystem/EventQueue.java +++ b/src/commandSystem/EventQueue.java @@ -50,7 +50,7 @@ public class EventQueue { return; switch (request.getDirection()) { case UP: - if (!upQueue.contains(request.getIncomingCallFloor())); + if (!upQueue.contains(request.getIncomingCallFloor())) appSort(upQueue, request.getIncomingCallFloor(), false); break; case DOWN: @@ -157,4 +157,4 @@ public class EventQueue { downQueue.removeAll(downQueue); upQueue.removeAll(upQueue); } -} \ No newline at end of file +}