Fixed bug with LeastPickedPicker

This commit is contained in:
Andrey Terentev 2024-01-13 01:01:15 +07:00
parent b316d3894f
commit 75af351fb3

View File

@ -39,7 +39,7 @@ public class LeastPickedPicker implements RoomPicker {
try {
wrapper = map.getMinimum();
if (wrapper.isFull()) throw new RuntimeException();
if (!wrapper.canAddUnits(users.size())) throw new RuntimeException();
} catch (RuntimeException ex) {
throw new RuntimeException("There are no rooms available");
}