Fix thread exception reporting for Ruby 2.3.8
Thread::report_on_exception doesn't exist.GSoC/Meterpreter_Web_Console
parent
7cf384405e
commit
0592420ea4
|
@ -59,8 +59,8 @@ class ThreadManager < Array
|
|||
|
||||
# XXX: Preserve Ruby < 2.5 thread exception reporting behavior
|
||||
# https://ruby-doc.org/core-2.5.0/Thread.html#method-c-report_on_exception
|
||||
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.5.0')
|
||||
Thread.report_on_exception = false if Thread.report_on_exception
|
||||
if Thread.respond_to?(:report_on_exception)
|
||||
Thread.report_on_exception = false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue