Fixed the bug that the message "Loaded cookies from ..." appears when

loading cookies from that file failed.
pull/1/head
Tatsuhiro Tsujikawa 2011-05-12 09:39:03 +09:00
parent 7d7b014c72
commit 00fa59d0f5
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ error_code::Value MultiUrlRequestInfo::execute()
if(!option_->blank(PREF_LOAD_COOKIES)) {
File cookieFile(option_->get(PREF_LOAD_COOKIES));
if(cookieFile.isFile()) {
e->getCookieStorage()->load(cookieFile.getPath(), Time().getTime());
if(cookieFile.isFile() &&
e->getCookieStorage()->load(cookieFile.getPath(), Time().getTime())) {
A2_LOG_INFO(fmt("Loaded cookies from '%s'.",
cookieFile.getPath().c_str()));
} else {