lib/PublicInbox/NNTP.pm | 5 ++--- diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 4b116a7d5b786af92daa95c2e4843aecfd46566f..b07e1845c2321962bb7962a926cc04032ce10aff 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -60,9 +60,8 @@ } sub update_idle_time ($) { my ($self) = @_; - my $tmp = $self->{sock} or return; - $tmp = fileno($tmp); - defined $tmp and $EXPMAP->{$tmp} = [ now(), $self ]; + my $fd = $self->{fd}; + defined $fd and $EXPMAP->{$fd} = [ now(), $self ]; } # reduce FD pressure by closing some "git cat-file --batch" processes