[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionoo/master] fixup! Create node index in background thread.
commit 4ad1ab4fae911963e362cab4554da02c1e7fc272
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits