]> 127.0.0.1 Git - part/.git/commitdiff
103 v0.3.8
authorqydysky <qydysky@foxmail.com>
Mon, 1 Feb 2021 17:20:15 +0000 (01:20 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 1 Feb 2021 17:20:15 +0000 (01:20 +0800)
idpool/Idpool.go

index 72fb4fe3e75cebd2133f293fe2c392d51b0b987b..6a25bab5b59a9fdba4e3b0dc9b3a2552de47255c 100644 (file)
@@ -36,6 +36,7 @@ func (t *Idpool) Get() (o Id) {
 }
 
 func (t *Idpool) Put(i Id) {
+       if i.item == nil {return}
        t.pool.Put(i.item)
        t.Lock()
        t.sum -= 1