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

[tor-commits] [snowflake-mobile/master] Changed time in Milliseconds to Seconds



commit 95cc69443e74926c8b5a59b3d9a5dea40e763d27
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Wed Jun 17 13:29:32 2020 +0530

    Changed time in Milliseconds to Seconds
---
 app/src/main/java/org/torproject/snowflake/MyPersistentService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/src/main/java/org/torproject/snowflake/MyPersistentService.java b/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
index 91550d6..0273d05 100644
--- a/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
+++ b/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
@@ -328,7 +328,7 @@ public class MyPersistentService extends Service {
         final GetOfferService getOfferService = RetroServiceGenerator.createService(GetOfferService.class);
         Observable<SDPOfferResponse> offer = getOfferService.getOffer(GlobalApplication.getHeadersMap(), new OfferRequestBody("555")); //TODO:Randomly Generate SID.
         serviceDisposable = offer.subscribeOn(Schedulers.io())
-                .delaySubscription(5000, TimeUnit.MILLISECONDS) //Delay of 5 seconds before sending request to avoid sending too many requests in case of a failure.
+                .delaySubscription(5, TimeUnit.SECONDS) //Delay of 5 seconds before sending request to avoid sending too many requests in case of a failure.
                 .observeOn(AndroidSchedulers.mainThread())
                 .subscribe(this::offerRequestSuccess, this::offerRequestFailure);
     }



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