Commit c279d1fb by Tuukka Kivilahti

Merge branch 'help' into 'master'

Fix queueue

See merge request !169
2 parents cfdf16c6 514a2776
......@@ -123,7 +123,7 @@ public class QueueBean implements QueueBeanLocal {
public MapReservationQueueEntry remove(EventUser user)
{
if (user != null) {
if (user == null) {
return null;
}
MapReservationQueueEntry ret = null;
......@@ -150,8 +150,9 @@ public class QueueBean implements QueueBeanLocal {
ret = new MapReservationQueueEntry();
queEntries.put(user, ret);
if (reserving.size() < reservingSize) {
boolean resStat = reserving.add(user);
logger.info("User {} not in queue and reserving smaller than size Entering directly: Success: {}", user, resStat);
checkReservingEntry();
logger.info("User {} not in queue and reserving smaller than size Entering directly: Success: {}", user);
} else {
boolean queStat = queue.offer(user);
logger.info("User {} not in queue, offer state {}", user, queStat);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!