diff --git a/internal/server/scripts.go b/internal/server/scripts.go index 6bc2d6fa..260baf42 100644 --- a/internal/server/scripts.go +++ b/internal/server/scripts.go @@ -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() }