fix -t option

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2251 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-01-31 14:08:10 +00:00
parent 35415d072a
commit 22361e8e52
2 changed files with 5 additions and 1 deletions

View file

@ -58,6 +58,10 @@
Type: bugfix
Changed: linkcheck/checker/{__init__, consumer}.py
* Fix crash when using -t option.
Type: bugfix
Changed: linkchecker
2.2 "Cube" (released 25.01.2005)
* CSV log format changes:

View file

@ -516,7 +516,7 @@ if options.threads is not None:
if options.threads < 1:
print_usage(_("Illegal argument %d for option %s") % \
(options.threads, "'-t, --threads'"))
config.set_threads(options.threads)
config["threads"] = options.threads
if options.timeout is not None:
if options.timeout > 0:
socket.setdefaulttimeout(options.timeout)