Skip to content

Commit 7fcc6e3

Browse files
committed
onFailure(Throwable e, String responseBody) is not called twice from
handleFailureMessage. Closes android-async-http#62
1 parent d6a4a2c commit 7fcc6e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public void onFailure(Throwable e, JSONArray errorResponse) {}
8989

9090
@Override
9191
protected void handleFailureMessage(Throwable e, String responseBody) {
92-
super.handleFailureMessage(e, responseBody);
9392
if (responseBody != null) try {
9493
Object jsonResponse = parseResponse(responseBody);
9594
if(jsonResponse instanceof JSONObject) {
@@ -105,4 +104,4 @@ protected void handleFailureMessage(Throwable e, String responseBody) {
105104
onFailure(e, "");
106105
}
107106
}
108-
}
107+
}

0 commit comments

Comments
 (0)