Permalink
Browse files

ensure we set the repository update date even if the repo couldn't be…

… fetched to save it retrying every 10 minutes
  • Loading branch information...
1 parent fb3128b commit 97edc27119c037127480ec54af234afc36331e91 Jonathan Marshall committed Jan 19, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 xbmc/addons/Repository.cpp
@@ -255,10 +255,8 @@ VECADDONS CRepositoryUpdateJob::GrabAddons(RepositoryPtr& repo)
CLog::Log(LOGERROR,"Repository %s returned no add-ons, listing may have failed",repo->Name().c_str());
}
else
- {
database.GetRepository(repo->ID(),addons);
- database.SetRepoTimestamp(repo->ID(),CDateTime::GetCurrentDateTime().GetAsDBDateTime());
- }
+ database.SetRepoTimestamp(repo->ID(),CDateTime::GetCurrentDateTime().GetAsDBDateTime());
return addons;
}

0 comments on commit 97edc27

Please sign in to comment.