From af614765c2e18640ea6bc434253e5bf60a9353cf Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 3 Aug 2026 19:44:04 -0500 Subject: [PATCH] Ensure thread is released on completion --- lib/timeout.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/timeout.rb b/lib/timeout.rb index 91b04a9..cbf6d54 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -177,6 +177,7 @@ def interrupt def finished Sync.synchronize @mutex do @done = true + @thread = nil end end end