diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2012-04-30 21:50:02 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2012-04-30 21:50:02 +0200 |
commit | 440ef790a60a73e9b47050cddacddba59c61b30b (patch) | |
tree | 6ee5f1ee82c0b97892cf8d17b3b3377312892e57 /lib/rbot/registry/bdb.rb | |
parent | 576e70482321b027edaffb8eb958d26bc5157a67 (diff) |
db adaptors: nil internal variable when closing
This prevents subsequent spurious flushes from bombing out because of
closed databases.
Diffstat (limited to 'lib/rbot/registry/bdb.rb')
-rw-r--r-- | lib/rbot/registry/bdb.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/registry/bdb.rb b/lib/rbot/registry/bdb.rb index 2403ec0e..b865770f 100644 --- a/lib/rbot/registry/bdb.rb +++ b/lib/rbot/registry/bdb.rb @@ -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 |