From ce6987e2cdf6e6fe497413c932236b2d75502bff Mon Sep 17 00:00:00 2001 From: Tadas Tamosauskas Date: Mon, 18 Sep 2023 09:42:50 +0100 Subject: [PATCH] Fix thread shutdown logic Shutdown was calling a non-existant 'schedule' method. Seems like the original thread pool's schedule method was renamed to 'queue' here, but this reference was not updated. --- lib/sequenceserver/pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sequenceserver/pool.rb b/lib/sequenceserver/pool.rb index 35bd692e9..c72f32afb 100644 --- a/lib/sequenceserver/pool.rb +++ b/lib/sequenceserver/pool.rb @@ -42,7 +42,7 @@ def queue(*args, &block) def shutdown @size.times do - schedule { throw :exit } + queue { throw :exit } end @pool.map(&:join) end