From 2ea8ca100072230f6f1db120579ff9018f618f04 Mon Sep 17 00:00:00 2001 From: John Garland Date: Mon, 19 Jan 2009 10:46:24 +0000 Subject: [PATCH] No longer checks for newer blocklist on startup --- deluge/plugins/blocklist/blocklist/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py index db027f061..5a1958137 100644 --- a/deluge/plugins/blocklist/blocklist/core.py +++ b/deluge/plugins/blocklist/blocklist/core.py @@ -266,6 +266,10 @@ class Core(CorePluginBase): log.debug("Empty blocklist") return True + # If blocklist has just started up don't check for updates + if not self.has_imported: + return False + import socket socket.setdefaulttimeout(self.config["timeout"]) @@ -278,6 +282,7 @@ class Core(CorePluginBase): log.debug("Unable to get blocklist stats: %s", e) return False + # Check if remote blocklist is newer (in date or size) if list_time < remote_time or list_size < remote_size: log.debug("Newer blocklist exists (%s & %d vs %s & %d)", remote_time, remote_size, list_time, list_size) return True