lastUpdate = System.currentTimeMillis();
prevLength = length;
} else {
if (System.currentTimeMillis() - lastUpdate > timeout) {
Message.verbose("download hang for more than "+timeout+"ms. Interrupting.");
get.interrupt();
if (to.exists()) to.delete();
throw new IOException(source+" download timeout from "+getHost());
}
}
try {