First timeout was too long
authorMartin Rexa <martin.rexa@centrum.cz>
Tue, 19 Jan 2010 09:34:45 +0100
changeset 2237416b11ad09f
parent 222 d783bb2a7956
child 224 a14e6f786cef
First timeout was too long
statistics/pom.xml
statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java
     1.1 --- a/statistics/pom.xml	Mon Jan 18 10:29:53 2010 +0100
     1.2 +++ b/statistics/pom.xml	Tue Jan 19 09:34:45 2010 +0100
     1.3 @@ -11,7 +11,7 @@
     1.4    <groupId>cz.xelfi.quoridor</groupId>
     1.5    <artifactId>statistics</artifactId>
     1.6    <packaging>jar</packaging>
     1.7 -  <version>1.6</version>
     1.8 +  <version>1.7</version>
     1.9    <name>Game Statistics</name>
    1.10    <url>http://maven.apache.org</url>
    1.11    <repositories>
     2.1 --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java	Mon Jan 18 10:29:53 2010 +0100
     2.2 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java	Tue Jan 19 09:34:45 2010 +0100
     2.3 @@ -92,10 +92,10 @@
     2.4              monitor.wait(timeout - (lastExec % timeout));
     2.5          }
     2.6          for(;;){
     2.7 +            processGames();
     2.8              synchronized (monitor) {
     2.9                  monitor.wait(timeout);
    2.10              }
    2.11 -            processGames();
    2.12          }
    2.13      }
    2.14