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

[tor-commits] [snowflake-mobile/master] Disposed all threads when we don't want to resend request



commit b83fc18a490f151c6c67217019a8828f44519d86
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Tue Jul 7 22:16:44 2020 +0530

    Disposed all threads when we don't want to resend request
---
 app/src/main/java/org/torproject/snowflake/MyPersistentService.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/src/main/java/org/torproject/snowflake/MyPersistentService.java b/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
index 62f1d3f..07fc37c 100644
--- a/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
+++ b/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
@@ -491,6 +491,8 @@ public class MyPersistentService extends Service {
                 webSocket.close(1000, "Normal closure");
                 isWebSocketOpen = false;
             }
+            if (compositeDisposable != null)
+                compositeDisposable.dispose(); //Disposing all the threads. Including network calls.
 
             return;
         }



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