sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 99f7df163ebd5d8d4054d3c40b026c17ea0fd4b6
parent fe09310d64730325d569fa2016d00416a4dc134e
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Tue, 29 Dec 2009 17:38:05 -0800

force the index sync thread to give up the cpu

Diffstat:
M lib/sup/index.rb | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -201,6 +201,8 @@ class BaseIndex
     while m = @sync_queue.deq
       return if m == :die
       update_message_state m
+      # Necessary to keep Xapian calls from lagging the UI too much.
+      sleep 0.03
     end
   end
 end