JETTY-1322 idle sweeper checks for closed endp
This commit is contained in:
parent
fe489224e6
commit
ff29a1cc51
|
@ -251,7 +251,7 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
|
|||
public void checkIdleTimestamp(long now)
|
||||
{
|
||||
long idleTimestamp=_idleTimestamp;
|
||||
if (idleTimestamp!=0 && _maxIdleTime>0 && now>(idleTimestamp+_maxIdleTime))
|
||||
if (!getChannel().isOpen() || idleTimestamp!=0 && _maxIdleTime!=0 && now>(idleTimestamp+_maxIdleTime))
|
||||
idleExpired();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue