[tor-commits] [snowflake-mobile/master] Changed time in Milliseconds to Seconds
cohosh at torproject.org
cohosh at torproject.org
Thu Jun 18 14:18:20 UTC 2020
commit 95cc69443e74926c8b5a59b3d9a5dea40e763d27
Author: Hashik Donthineni <HashikDonthineni at gmail.com>
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);
}
More information about the tor-commits
mailing list