aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/gemcutter_utilities/webauthn_poller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/gemcutter_utilities/webauthn_poller.rb')
-rw-r--r--lib/rubygems/gemcutter_utilities/webauthn_poller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/gemcutter_utilities/webauthn_poller.rb b/lib/rubygems/gemcutter_utilities/webauthn_poller.rb
index 766b38584e..7ffd472ad3 100644
--- a/lib/rubygems/gemcutter_utilities/webauthn_poller.rb
+++ b/lib/rubygems/gemcutter_utilities/webauthn_poller.rb
@@ -33,12 +33,12 @@ module Gem::GemcutterUtilities
def self.poll_thread(options, host, webauthn_url, credentials)
thread = Thread.new do
+ Thread.abort_on_exception = true
+ Thread.report_on_exception = false
Thread.current[:otp] = new(options, host).poll_for_otp(webauthn_url, credentials)
rescue Gem::WebauthnVerificationError, Timeout::Error => e
Thread.current[:error] = e
end
- thread.abort_on_exception = true
- thread.report_on_exception = false
thread
end