Revert back to quickjs-android (quickjs stackoverflows)

This commit is contained in:
tom5079
2022-01-02 09:16:28 +09:00
parent 37cd99731c
commit fcd72bb8bd
4 changed files with 31 additions and 16 deletions

View File

@@ -149,7 +149,7 @@ class DownloadService : Service() {
override fun source(): BufferedSource {
if (bufferedSource == null)
bufferedSource = source(responseBody.source()).buffer()
bufferedSource = Okio.buffer(source(responseBody.source()))
return bufferedSource!!
}
@@ -174,13 +174,9 @@ class DownloadService : Service() {
private val interceptor: PupilInterceptor = { chain ->
val request = chain.request()
Log.d("PUPILD", "REQ")
if (rateLimitHost.matches(request.url().host()))
rateLimiter.acquire()
Log.d("PUPILD", "ACQ ${request.url()}")
var response = chain.proceed(request)
var limit = 5