Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
save removed threads to storage file
Browse files Browse the repository at this point in the history
  • Loading branch information
tal authored and flippingbits committed Dec 1, 2010
1 parent e7e742d commit 5d5db24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/titan/thread.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d5db24

Please sign in to comment.