[tor-commits] [orbot/master] CDN Fronts Reader never closed
n8fr8 at torproject.org
n8fr8 at torproject.org
Wed Dec 22 21:55:09 UTC 2021
commit 4569eec61b92743b634f4c650ee5c9ad82e8fb58
Author: bim <dsnake at protonmail.com>
Date: Mon Aug 2 16:53:37 2021 -0400
CDN Fronts Reader never closed
---
.../src/main/java/org/torproject/android/service/OrbotService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
index 5e06cee2..006b2484 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
@@ -352,11 +352,11 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
String line;
while ((line = reader.readLine())!=null) {
String[] front = line.split(" ");
-
//add some code to test the connection here
mFronts.put(front[0],front[1]);
}
+ reader.close();
} catch (IOException e) {
e.printStackTrace();
}
More information about the tor-commits
mailing list