[tor-commits] [onionoo/master] fixup! Create node index in background thread.

karsten at torproject.org karsten at torproject.org
Sat Apr 19 22:48:51 UTC 2014


commit 4ad1ab4fae911963e362cab4554da02c1e7fc272
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Sat Apr 19 15:34:45 2014 +0200

    fixup! Create node index in background thread.
---
 src/org/torproject/onionoo/NodeIndexer.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/torproject/onionoo/NodeIndexer.java b/src/org/torproject/onionoo/NodeIndexer.java
index 87ecf9f..5dc0e0a 100644
--- a/src/org/torproject/onionoo/NodeIndexer.java
+++ b/src/org/torproject/onionoo/NodeIndexer.java
@@ -165,7 +165,7 @@ public class NodeIndexer implements ServletContextListener, Runnable {
   private Thread nodeIndexerThread = null;
 
   public synchronized long getLastIndexed(long timeoutMillis) {
-    if (this.lastIndexed == 0L && this.nodeIndexerThread != null &&
+    if (this.lastIndexed == -1L && this.nodeIndexerThread != null &&
         timeoutMillis > 0L) {
       try {
         this.wait(timeoutMillis);





More information about the tor-commits mailing list