Skip to content

Commit b9e2c67

Browse files
author
Alex Roitman
committed
Fix lua pool pruning
1 parent 6e98f52 commit b9e2c67

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)