# HG changeset patch # User Martin Rexa # Date 1304277007 -7200 # Node ID 0ea04469967d47224f6215ea96f434c86ae09ebd # Parent 40fc213a7f43802e507e80be3cbbedb6d29cd426 Timeout and finish diff -r 40fc213a7f43 -r 0ea04469967d pom.xml --- a/pom.xml Fri Apr 15 21:18:29 2011 +0200 +++ b/pom.xml Sun May 01 21:10:07 2011 +0200 @@ -52,7 +52,7 @@ 1.0-SNAPSHOT 1.61 1.1 - 1.8 + 1.9 1.2 diff -r 40fc213a7f43 -r 0ea04469967d statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java Fri Apr 15 21:18:29 2011 +0200 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/resources/Statistics.java Sun May 01 21:10:07 2011 +0200 @@ -78,6 +78,8 @@ HttpServer s = start(port); System.out.println("Statistics started at port " + port); Object monitor = new Object(); +/* + * Disabled until OutOfMemory is solved // Wait until begining of next period. If timeout is one day, then next // processing will be done after midnight synchronized (monitor) { @@ -89,6 +91,11 @@ monitor.wait(timeout); } } + * + */ + synchronized (monitor) { + monitor.wait(timeout); + } } public static HttpServer start(int port) throws IOException {