lib/sup.rb in sup-0.15.3 vs lib/sup.rb in sup-0.15.4
- old
+ new
@@ -5,11 +5,11 @@
YAML::ENGINE.yamler = 'psych'
require 'zlib'
require 'thread'
require 'fileutils'
require 'locale'
-require 'curses'
+require 'ncursesw'
require 'rmail'
begin
require 'fastthread'
rescue LoadError
end
@@ -251,10 +251,10 @@
Redwood::SearchManager.save if Redwood::SearchManager.instantiated?
Redwood::Logger.remove_sink @log_io
managers.each { |x| x.deinstantiate! if x.instantiated? }
- @log_io.close
+ @log_io.close if @log_io
@log_io = nil
$config = nil
end
## not really a good place for this, so I'll just dump it here.