From 7c1e70902b6cdddfffb61904ad043f648a2f1be9 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 17 Oct 2019 11:47:24 -0700 Subject: [PATCH] Set report_on_exception = false in join_nowait thread Otherwise, duplicate exception reports can happen. Fixes Ruby Bug 15644 --- lib/thwait.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/thwait.rb b/lib/thwait.rb index 541fe1e..fe33eb2 100644 --- a/lib/thwait.rb +++ b/lib/thwait.rb @@ -89,6 +89,7 @@ def join_nowait(*threads) @threads.concat threads for th in threads Thread.start(th) do |t| + Thread.current.report_on_exception = false begin t.join ensure