only turn off thread reporting if it is already on

GSoC/Meterpreter_Web_Console
Brent Cook 2018-11-01 18:08:52 -05:00
parent 57dbe95c04
commit 4dcb31f26b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ 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
Thread.report_on_exception = false
Thread.report_on_exception = false if Thread.report_on_exception
end
#