357240 switch fix

This commit is contained in:
Greg Wilkins 2011-09-28 20:37:31 +10:00
parent dbf636df4d
commit 444c09fce7
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class AsyncHttpConnection extends HttpConnection
boolean more_in_buffer =false; boolean more_in_buffer =false;
while (_endp.isOpen() && (more_in_buffer || progress)) while (_endp.isOpen() && (more_in_buffer || progress) && connection==this)
{ {
progress=false; progress=false;
try try
@ -94,7 +94,7 @@ public class AsyncHttpConnection extends HttpConnection
{ {
_parser.reset(); _parser.reset();
_generator.reset(true); _generator.reset(true);
return switched; connection=switched;
} }
} }