Bug fix in the overriding of max_threads when it was nil

This commit is contained in:
Erwan
2012-09-04 18:29:54 +02:00
parent 8e5d506bc1
commit a21d844f13
2 changed files with 18 additions and 7 deletions

View File

@@ -197,7 +197,7 @@ class Browser
# Override with the options if they are set
def override_config_with_options(options)
options.each do |option, value|
if ACCESSOR_OPTIONS.include?(option)
if value != nil and ACCESSOR_OPTIONS.include?(option)
self.send(:"#{option}=", value)
end
end