diff --git a/src/com/sheepit/client/Server.java b/src/com/sheepit/client/Server.java index abd9571..f03b275 100644 --- a/src/com/sheepit/client/Server.java +++ b/src/com/sheepit/client/Server.java @@ -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(); return connection;