diff --git a/lib/titan/thread.rb b/lib/titan/thread.rb index b9c4929..ac5553c 100644 --- a/lib/titan/thread.rb +++ b/lib/titan/thread.rb @@ -103,6 +103,8 @@ def save_threads # def remove_dead_threads @@threads.delete_if { |thread_id,thread| !thread.alive? } + save_threads + @@threads end end end