]> 127.0.0.1 Git - part/.git/commitdiff
1
authorqydysky <qydysky@foxmail.com>
Tue, 9 Jan 2024 16:35:53 +0000 (00:35 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 9 Jan 2024 16:35:53 +0000 (00:35 +0800)
web/Web.go

index 3c2a09fcff4c425fa65b83fdb081156c60fe3d46..d5b999d4347827faf3d55115a9ee39020d04e025 100644 (file)
@@ -489,8 +489,8 @@ func (t *Exprier) LoopCheck(key string, dru time.Duration, whenfail func(key str
        var close atomic.Bool
        t.m.Store(key, time.Now().Add(dru))
        breakLoop = func() {
-               t.m.Delete(key)
                close.Store(true)
+               t.m.Delete(key)
        }
 
        go func() {