commit b83fc18a490f151c6c67217019a8828f44519d86 Author: Hashik Donthineni HashikDonthineni@gmail.com 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@lists.torproject.org