Skip to content

Commit 544c414

Browse files
authored
Merge pull request #483 from rshura/lua-pool-prune-fix
Fix lua pool pruning
2 parents 6e98f52 + b9e2c67 commit 544c414

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/server/scripts.go

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func (pl *lStatePool) Prune() {
8585
newSaved := make([]*lua.LState, n-dropNum)
8686
copy(newSaved, pl.saved[dropNum:])
8787
pl.saved = newSaved
88+
pl.total -= dropNum
8889
}
8990
pl.m.Unlock()
9091
}

0 commit comments

Comments
 (0)