mirror of https://github.com/tidwall/tile38.git
Merge pull request #483 from rshura/lua-pool-prune-fix
Fix lua pool pruning
This commit is contained in:
commit
544c414972
|
@ -85,6 +85,7 @@ func (pl *lStatePool) Prune() {
|
|||
newSaved := make([]*lua.LState, n-dropNum)
|
||||
copy(newSaved, pl.saved[dropNum:])
|
||||
pl.saved = newSaved
|
||||
pl.total -= dropNum
|
||||
}
|
||||
pl.m.Unlock()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue