]> git.lizzy.rs Git - go-anidb.git/commit
anidb: Avoid crash during MyListAdd / MyListEdit
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Fri, 26 Jul 2013 15:20:43 +0000 (12:20 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Fri, 26 Jul 2013 15:20:43 +0000 (12:20 -0300)
commit7a71581e452af3bc6c5f9d646818eeb34e833d53
tree3c14627f531da6d68fd92e44a5658544c49541a3
parentce290123d061b307e26132c94adda37d30926127
anidb: Avoid crash during MyListAdd / MyListEdit

Could happen if a file is added without a cached MyListEntry. Make a fake
MyListEntry and cache that, with an old enough Cached timestamp to make
it always stale.

Also change the always stale timestamp in parseMylistReply to a more
reliably ancient one.
mylistcache.go
mylistmanip.go