1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #644 from bpaquet/master

Avoid crash in strange restart conditions
This commit is contained in:
Evan Phoenix 2015-01-29 13:29:57 -08:00
commit a67ecb2c40

View file

@ -307,7 +307,7 @@ module Puma
if threads.first.respond_to? :backtrace
log "! WARNING: Detected #{after.size-before.size} Thread(s) started in app boot:"
threads.each do |t|
log "! #{t.inspect} - #{t.backtrace.first}"
log "! #{t.inspect} - #{t.backtrace ? t.backtrace.first : ''}"
end
else
log "! WARNING: Detected #{after.size-before.size} Thread(s) started in app boot"