File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
library/src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 19
19
package com .loopj .android .http ;
20
20
21
21
import org .apache .http .HttpResponse ;
22
+ import org .apache .http .client .ClientProtocolException ;
22
23
import org .apache .http .client .HttpRequestRetryHandler ;
23
24
import org .apache .http .client .methods .HttpUriRequest ;
24
25
import org .apache .http .conn .ConnectTimeoutException ;
@@ -102,6 +103,11 @@ private void makeRequestWithRetries() throws ConnectException {
102
103
try {
103
104
makeRequest ();
104
105
return ;
106
+ } catch (ClientProtocolException e ) {
107
+ if (responseHandler != null ) {
108
+ responseHandler .sendFailureMessage (e , "cannot repeat the request" );
109
+ }
110
+ return ;
105
111
} catch (UnknownHostException e ) {
106
112
if (responseHandler != null ) {
107
113
responseHandler .sendFailureMessage (e , "can't resolve host" );
You can’t perform that action at this time.
0 commit comments