Skip to content

Commit 661a00d

Browse files
committed
Do not clone reason, let it up to exception
It was broken when reason was an exception class
1 parent 2eac362 commit 661a00d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/promises.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def exception(*args)
10211021
ex
10221022
else
10231023
ex = if reason[0].respond_to? :exception
1024-
reason[0].clone.exception(*args)
1024+
reason[0].exception(*args)
10251025
else
10261026
RuntimeError.new(reason[0]).exception(*args)
10271027
end

0 commit comments

Comments
 (0)