Bugfix: don't update lastRequestTime in case of error (Timeout, IOException,...)

This commit is contained in:
Laurent Clouet
2017-03-01 00:30:48 +01:00
parent ddac792ab7
commit 22e7fa7ded

View File

@@ -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;