Skip to content

Commit d6a3d31

Browse files
committed
fix: HTTP requests are executed serially instead of in parallel
1 parent a6ee7ea commit d6a3d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/src/com/tns/Async.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public static void MakeRequest(RequestOptions options, CompleteCallback callback
208208
options.screenWidth = metrics.widthPixels;
209209
options.screenHeight = metrics.heightPixels;
210210
}
211-
new HttpRequestTask(callback, context).execute(options);
211+
new HttpRequestTask(callback, context).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, options);
212212
}
213213

214214
static class HttpRequestTask extends AsyncTask<RequestOptions, Void, RequestResult>

0 commit comments

Comments
 (0)