JETTY-1322 idle sweeper checks for closed endp

This commit is contained in:
Greg Wilkins 2011-09-21 13:46:48 +10:00
parent fe489224e6
commit ff29a1cc51
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}