diff options
Diffstat (limited to 'lib/rainbows/thread_spawn.rb')
-rw-r--r-- | lib/rainbows/thread_spawn.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index 0e023cd..f1acf07 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -45,11 +45,8 @@ module Rainbows end threads.add(Thread.new(c) { |c| process_client(c) }) end - rescue - if alive - logger.error "Unhandled listen loop exception #{e.inspect}." - logger.error e.backtrace.join("\n") - end + rescue Object => e + listen_loop_error(e) if alive end while alive && master_pid == Process.ppid join_spawned_threads(threads) end |