From 9409ec05af96d64cc05e72ea1657859237e0432e Mon Sep 17 00:00:00 2001 From: Voker57 Date: Sat, 19 Dec 2009 18:47:43 +0300 Subject: markov: close registry correctly --- data/rbot/plugins/markov.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index c574fd4b..0b8412f7 100755 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -253,9 +253,13 @@ class MarkovPlugin < Plugin end debug 'closing learning thread' + @learning_queue.clear @learning_queue.push nil @learning_thread.join debug 'learning thread closed' + @chains.close + @rchains.close + super end # pick a word from the registry using the pair as key. -- cgit v1.2.3