474618 - AsyncListener.onComplete not called when error occurs

This commit is contained in:
Joakim Erdfelt 2015-08-10 07:56:14 -07:00
parent b522dd7fe2
commit 60f409e4ff
1 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,7 @@
package org.eclipse.jetty.server;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
@ -545,13 +546,19 @@ public class HttpChannelState
{
if (event.getThrowable()!=null)
listener.onError(event);
else
listener.onComplete(event);
}
catch(Exception e)
{
LOG.warn(e);
}
try
{
listener.onComplete(event);
}
catch (IOException e)
{
LOG.warn(e);
}
}
}