Refactoring frontend + commons + aggiunta tempi corretti
This commit is contained in:
parent
10595f5bab
commit
4760152e90
32 changed files with 676 additions and 558 deletions
|
|
@ -35,10 +35,10 @@ public class Auth extends UnicastRemoteObject implements IAuth {
|
|||
return new Response("Registration successfull", 200, null);
|
||||
} else {
|
||||
Server.logger.write("Registration unsuccessfull");
|
||||
return new Response("Registration unsuccessfull: Username exist!", 400, null);
|
||||
return new Response("<html><center>Registration unsuccessfull: <br/> Username exist!</center></html>", 400, null);
|
||||
}
|
||||
}
|
||||
return new Response("Registration unsuccessfull! All fields are mandatories", 400, null);
|
||||
return new Response("<html><center>Registration unsuccessfull! <br/> All fields are mandatories</center></html>", 400, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public class JoinTimeout implements Callable<Boolean> {
|
|||
@Override
|
||||
public Boolean call() throws Exception {
|
||||
try {
|
||||
Thread.currentThread().sleep(1*20*1000);
|
||||
Thread.currentThread().sleep(7*60*1000);
|
||||
System.out.println("TIMEOUTTTT");
|
||||
|
||||
if(match.joinTimeout) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public class MatchTimeout implements Callable<Boolean> {
|
|||
@Override
|
||||
public Boolean call() throws Exception {
|
||||
try {
|
||||
Thread.currentThread().sleep(1*60*1000); //TODO 5*60*1000
|
||||
Thread.currentThread().sleep(5*60*1000); //TODO 5*60*1000
|
||||
match.setUndefinedScorePlayersToZero();
|
||||
|
||||
if(match.matchTimeout) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue