Bugfix: don't update lastRequestTime in case of error (Timeout, IOException,...)
This commit is contained in:
@@ -548,6 +548,9 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// actually use the connection to, in case of timeout, generate an exception
|
||||||
|
connection.getResponseCode();
|
||||||
|
|
||||||
this.lastRequestTime = new Date().getTime();
|
this.lastRequestTime = new Date().getTime();
|
||||||
|
|
||||||
return connection;
|
return connection;
|
||||||
|
|||||||
Reference in New Issue
Block a user