[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] cache circuits by circId



commit 19539620a9fee3ffac6a71ed614330f2fe74572c
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
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);
 
             }
         }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits