diff --git a/shadowsocks/lru_cache.py b/shadowsocks/lru_cache.py index 473a5fd..6f7a6f3 100644 --- a/shadowsocks/lru_cache.py +++ b/shadowsocks/lru_cache.py @@ -65,6 +65,7 @@ class LRUCache(collections.MutableMapping): if self._store.__contains__(key): if now - self._keys_to_last_time[key] > self.timeout: del self._store[key] + del self._keys_to_last_time[key] c += 1 del self._time_to_keys[least] if c: