Skip to content

Commit a1a0ec3

Browse files
committed
Sending failure events correctly
1 parent c7b293b commit a1a0ec3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public void post(Context context, String url, RequestParams params, AsyncHttpRes
392392
try {
393393
post(context, url, paramsToEntity(params, responseHandler), null, responseHandler);
394394
} catch (IOException e) {
395-
responseHandler.onFailure(e, null);
395+
responseHandler.sendFailureMessage(e, (String) null);
396396
}
397397
}
398398

@@ -428,7 +428,7 @@ public void post(Context context, String url, Header[] headers, RequestParams pa
428428
try {
429429
request.setEntity(paramsToEntity(params, responseHandler));
430430
} catch (IOException e) {
431-
responseHandler.onFailure(e, null);
431+
responseHandler.sendFailureMessage(e, (String) null);
432432
}
433433
}
434434

@@ -493,7 +493,7 @@ public void put(Context context, String url, RequestParams params, AsyncHttpResp
493493
try {
494494
put(context, url, paramsToEntity(params, responseHandler), null, responseHandler);
495495
} catch (IOException e) {
496-
responseHandler.onFailure(e, null);
496+
responseHandler.sendFailureMessage(e, (String) null);
497497
}
498498
}
499499

0 commit comments

Comments
 (0)