fixed retry mechanism

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@180 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-09-23 08:39:45 +00:00
parent 5812a35d67
commit e856c0a270

View file

@ -66,13 +66,13 @@ public final class ParserUtils
if (encoding == null)
encoding = SCRAPE_DEFAULT_ENCODING;
final StringBuilder buffer = new StringBuilder(SCRAPE_INITIAL_CAPACITY);
int tries = 3;
while (true)
{
try
{
final StringBuilder buffer = new StringBuilder(SCRAPE_INITIAL_CAPACITY);
final HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
connection.setDoInput(true);