Refactoring frontend + commons + aggiunta tempi corretti

This commit is contained in:
Lorenzo Iovino 2017-07-13 03:31:54 +02:00
parent 10595f5bab
commit 4760152e90
32 changed files with 676 additions and 558 deletions

View file

@ -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

View file

@ -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) {

View file

@ -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) {