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

[tor-commits] [orbot/master] CDN Fronts Reader never closed



commit 4569eec61b92743b634f4c650ee5c9ad82e8fb58
Author: bim <dsnake@xxxxxxxxxxxxxx>
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();
             }



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