replaced break in finally with progres=false

This commit is contained in:
Greg Wilkins 2012-01-09 08:53:19 +11:00
parent 69675d4d19
commit 588b068c06
1 changed files with 3 additions and 3 deletions

View File

@ -126,10 +126,10 @@ public class AsyncHttpConnection extends AbstractHttpConnection implements Async
}
else if (_request.getAsyncContinuation().isAsyncStarted())
{
// The request is suspended, so even though progress has been made, break the while loop
// The request is suspended, so even though progress has been made,
// exit the while loop by setting progress to false
LOG.debug("suspended {}",this);
// TODO: breaking inside finally blocks is bad: rethink how we should exit from here
break;
progress=false;
}
}
}