Fixed cache bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 20 Mar 2015 05:13:01 +0000 (06:13 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 20 Mar 2015 05:13:01 +0000 (06:13 +0100)
didex/cache.py

index 76742aa..a47f7dd 100644 (file)
@@ -27,6 +27,7 @@ class entry(object):
         self.p = None
         self.n = c.mru
         c.mru.p = self
+        c.mru = self
 
     def remove(self, c):
         if self.n is not None: