[tor-commits] [orbot/master] cache circuits by circId
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu Mar 2 04:10:21 UTC 2017
commit 19539620a9fee3ffac6a71ed614330f2fe74572c
Author: Nathan Freitas <nathan at freitas.net>
Date: Sat Jan 14 06:40:25 2017 -0500
cache circuits by circId
---
.../main/java/org/torproject/android/service/TorEventHandler.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorEventHandler.java b/orbotservice/src/main/java/org/torproject/android/service/TorEventHandler.java
index f6aa315..8231803 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/TorEventHandler.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/TorEventHandler.java
@@ -190,7 +190,7 @@ public class TorEventHandler implements EventHandler, TorServiceConstants {
{
node.id = nodeParts[0].substring(1);
node.name = nodeParts[1];
- }
+ }
node.status = status;
@@ -215,12 +215,12 @@ public class TorEventHandler implements EventHandler, TorServiceConstants {
if (node.ipAddress == null)
mService.exec(new ExternalIPFetcher(node));
- hmBuiltNodes.put(node.id, node);
+ hmBuiltNodes.put(circID, node);
}
if (status.equals("CLOSED"))
{
- hmBuiltNodes.remove(node.id);
+ hmBuiltNodes.remove(circID);
}
}
More information about the tor-commits
mailing list