Commit 514a2776 by Tuomas Riihimäki

Hurr

1 parent cfdf16c6
...@@ -123,7 +123,7 @@ public class QueueBean implements QueueBeanLocal { ...@@ -123,7 +123,7 @@ public class QueueBean implements QueueBeanLocal {
public MapReservationQueueEntry remove(EventUser user) public MapReservationQueueEntry remove(EventUser user)
{ {
if (user != null) { if (user == null) {
return null; return null;
} }
MapReservationQueueEntry ret = null; MapReservationQueueEntry ret = null;
...@@ -150,8 +150,9 @@ public class QueueBean implements QueueBeanLocal { ...@@ -150,8 +150,9 @@ public class QueueBean implements QueueBeanLocal {
ret = new MapReservationQueueEntry(); ret = new MapReservationQueueEntry();
queEntries.put(user, ret); queEntries.put(user, ret);
if (reserving.size() < reservingSize) { if (reserving.size() < reservingSize) {
boolean resStat = reserving.add(user); checkReservingEntry();
logger.info("User {} not in queue and reserving smaller than size Entering directly: Success: {}", user, resStat);
logger.info("User {} not in queue and reserving smaller than size Entering directly: Success: {}", user);
} else { } else {
boolean queStat = queue.offer(user); boolean queStat = queue.offer(user);
logger.info("User {} not in queue, offer state {}", user, queStat); 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!