From 224854533daaa89974c8eebb2b17d1161b3aa7e0 Mon Sep 17 00:00:00 2001 From: Jason Fulghum Date: Wed, 26 Mar 2025 17:18:00 -0700 Subject: [PATCH] bug fix: copy error when closing a runtime --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.go b/pool.go index b85a977..c73a69d 100644 --- a/pool.go +++ b/pool.go @@ -178,7 +178,7 @@ func (pool *Pool) closeRuntime(ctx context.Context, rtrackerIdx int, rtracker *R // We then remove the runtime from the slice newSlice := make([]*RuntimeTracker, len(pool.runtimes)-1) copy(newSlice, pool.runtimes[:rtrackerIdx]) - copy(newSlice, pool.runtimes[rtrackerIdx+1:]) + copy(newSlice[rtrackerIdx:], pool.runtimes[rtrackerIdx+1:]) pool.runtimes = newSlice }