Fixed bug with LeastPickedPicker
This commit is contained in:
parent
b316d3894f
commit
75af351fb3
@ -39,7 +39,7 @@ public class LeastPickedPicker implements RoomPicker {
|
|||||||
try {
|
try {
|
||||||
wrapper = map.getMinimum();
|
wrapper = map.getMinimum();
|
||||||
|
|
||||||
if (wrapper.isFull()) throw new RuntimeException();
|
if (!wrapper.canAddUnits(users.size())) throw new RuntimeException();
|
||||||
} catch (RuntimeException ex) {
|
} catch (RuntimeException ex) {
|
||||||
throw new RuntimeException("There are no rooms available");
|
throw new RuntimeException("There are no rooms available");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user