Skip to content
Snippets Groups Projects
Commit 837cb0f0 authored by ale's avatar ale
Browse files

Fix hilarious reverse-expiration bug

parent 8c9690bf
Branches
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ func (s *KeyStore) expire() {
for t := range time.NewTicker(600 * time.Second).C {
s.mx.Lock()
for u, k := range s.userKeys {
if k.expiry.After(t) {
if k.expiry.Before(t) {
wipeBytes(k.pkey)
delete(s.userKeys, u)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment