This commit is contained in:
Redkale
2018-05-23 18:20:30 +08:00
parent a46cb462a2
commit ff14e675fa

View File

@@ -254,7 +254,7 @@ public abstract class Response<C extends Context, R extends Request<C>> {
}
this.recycleListener = null;
}
if (request.keepAlive) {
if (request.keepAlive && channel != null && channel.isOpen()) {
AsyncConnection conn = removeChannel();
this.recycle();
this.prepare();