]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* more BDB leaking fixed
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 29 Sep 2010 23:15:33 +0000 (01:15 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 29 Sep 2010 23:15:33 +0000 (01:15 +0200)
lib/rbot/plugins.rb

index 55733ceed5417b481a285175321eaa11a3f44fe0..05855b418bf9ba5edeb45f55093fb8ed12f26c54 100644 (file)
@@ -941,7 +941,7 @@ module Plugins
           rescue Exception => err
             raise if err.kind_of?(SystemExit)
             error report_error("#{p.botmodule_class} #{p.name} #{method}() failed:", err)
-            raise if err.kind_of?(BDB::Fatal)
+            raise if err.kind_of?(DBFatal)
           end
         }
       else
@@ -957,7 +957,7 @@ module Plugins
             rescue Exception => err
               raise if err.kind_of?(SystemExit)
               error report_error("#{p.botmodule_class} #{p.name} #{method}() failed:", err)
-              raise if err.kind_of?(BDB::Fatal)
+              raise if err.kind_of?(DBFatal)
             end
           end
         }
@@ -987,7 +987,7 @@ module Plugins
             rescue Exception => err
               raise if err.kind_of?(SystemExit)
               error report_error("#{p.botmodule_class} #{p.name} privmsg() failed:", err)
-              raise if err.kind_of?(BDB::Fatal)
+              raise if err.kind_of?(DBFatal)
             end
             debug "Successfully delegated #{m.inspect}"
             return true