From f7b3b38fec3c46398162c4993d8b69c5477eb46f Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sat, 2 Feb 2008 20:16:19 -0800 Subject: [PATCH] ThreadIndexMode: handle deleted updates correctly --- lib/sup/modes/thread-index-mode.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 0809d54..5985cae 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -166,10 +166,9 @@ EOS end def handle_deleted_update sender, m - @ts_mutex.synchronize do - return unless @ts.contains? m - @ts.remove_thread_containing_id m.id - end + t = @ts_mutex.synchronize { @ts.thread_for m } + return unless t + hide_thread t update end -- 2.45.2