From c5a7abe5d2b1765746d6ef79cbce5c22711c76ab Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 22 Jun 2008 23:25:15 +0000 Subject: [PATCH] Fix _on_send_info --- deluge/core/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index a13673968..d7988c19b 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -813,7 +813,7 @@ class Core( self.settings.dont_count_slow_torrents = value self.session.set_settings(self.settings) - def _on_send_info(self): + def _on_send_info(self, key, value): log.debug("Sending anonymous stats..") """sends anonymous stats home""" class Send_Info_Thread(threading.Thread): @@ -839,4 +839,5 @@ class Core( log.debug("Network error while trying to send info: %s", e) else: self.config["info_sent"] = now - Send_Info_Thread(self.config).start() + if value: + Send_Info_Thread(self.config).start()