imode.load_threads :num => ibuf.content_height, :when_done => lambda { reporting_thread { sleep 1; PollManager.poll } }
unless $opts[:no_threads]
- PollManager.start_thread
- SuicideManager.start_thread
+ PollManager.start
+ SuicideManager.start
Index.start_lock_update_thread
end
rescue Exception => e
$exception ||= e
ensure
+ unless $opts[:no_threads]
+ PollManager.stop
+ SuicideManager.stop
+ Index.stop_lock_update_thread
+ end
+
Redwood::finish
stop_cursing
William
----------------------------------------------------------------
-The problem was: #{$exception.message} (error type #{$exception.class.name})
+The problem was: '#{$exception.message}' (error type #{$exception.class.name})
A backtrace follows:
EOS
raise $exception