Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 514a2776
authored
Dec 14, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hurr
1 parent
cfdf16c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/QueueBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/QueueBean.java
View file @
514a277
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment