Skip to content

Commit aa7c1c0

Browse files
author
Mihail Slavchev
committed
Merge pull request #99 from NativeScript/sd/fix-http-serial-bug
fix: HTTP requests are executed serially instead of in parallel
2 parents 35e46fa + d6a3d31 commit aa7c1c0

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)