]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/registry/bdb.rb
db adaptors: nil internal variable when closing
[user/henk/code/ruby/rbot.git] / lib / rbot / registry / bdb.rb
index d1876ac57cf2aad75e9ea284df66fcd1ff77bebe..b865770fc32ff740d2c88eb816e76e30175f39c8 100644 (file)
@@ -36,7 +36,7 @@ module BDB
   class CIBtree < Btree
     def bdb_bt_compare(a, b)
       if a == nil || b == nil
-        warning "CIBTree: comparing #{a.inspect} (#{self[a].inspect}) with #{b.inspect} (#{self[b].inspect})"
+        warning "CIBTree: comparing key #{a.inspect} with #{b.inspect}"
       end
       (a||'').downcase <=> (b||'').downcase
     end
@@ -377,6 +377,7 @@ class Bot
       # debug "closing registry #{registry}"
       return if !@registry
       registry.close
+      @registry = nil
     end
 
     # convert value to string form for storing in the registry