From a7c26366b45b5c4fe2eedc59053afb69d69d43c4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 19 Apr 2011 08:43:29 +0000 Subject: [PATCH] doing that auto default value for --time-sec only for --tor --- lib/core/option.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 0c708e13a..d937ae6f5 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1205,13 +1205,13 @@ def __cleanupOptions(): # to distinguish explicit usage of --time-sec if conf.timeSec is None: - if conf.tor or conf.proxy: + if conf.tor: conf.timeSec = 2 * TIME_DEFAULT_DELAY kb.adjustTimeDelay = False warnMsg = "increasing default value for " warnMsg += " --time-sec to %d because " % conf.timeSec - warnMsg += "%s switch used" % ("--tor" if conf.tor else "--proxy") + warnMsg += "--tor switch used" logger.warn(warnMsg) else: conf.timeSec = TIME_DEFAULT_DELAY