statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java
changeset 283 0ea04469967d
parent 266 15fcdfc4cd4a
     1.1 --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java	Tue Sep 14 09:46:43 2010 +0200
     1.2 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java	Sun May 01 21:10:07 2011 +0200
     1.3 @@ -78,6 +78,8 @@
     1.4          HttpServer s = start(port);
     1.5          System.out.println("Statistics started at port " + port);
     1.6          Object monitor = new Object();
     1.7 +/*
     1.8 +         * Disabled until OutOfMemory is solved
     1.9          // Wait until begining of next period. If timeout is one day, then next
    1.10          // processing will be done after midnight
    1.11          synchronized (monitor) {
    1.12 @@ -89,6 +91,11 @@
    1.13                  monitor.wait(timeout);
    1.14              }
    1.15          }
    1.16 + * 
    1.17 + */
    1.18 +        synchronized (monitor) {
    1.19 +            monitor.wait(timeout);
    1.20 +        }
    1.21      }
    1.22  
    1.23      public static HttpServer start(int port) throws IOException {