We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6077c6a commit eb44905Copy full SHA for eb44905
library/src/main/java/com/loopj/android/http/AsyncHttpRequest.java
@@ -167,7 +167,12 @@ public boolean isDone() {
167
public boolean cancel(boolean mayInterruptIfRunning) {
168
isCancelled = true;
169
if (mayInterruptIfRunning && request != null && !request.isAborted()) {
170
- request.abort();
+ new Thread(new Runnable() {
171
+ @Override
172
+ public void run() {
173
+ request.abort();
174
+ }
175
+ });
176
}
177
return isCancelled();
178
0 commit comments