Commit 5cfa50f7 authored by Sébastien Blin's avatar Sébastien Blin

contact_list: do not load non existing file

Change-Id: I33c732784833808d092cefa402669a0bbdc0561e
GitLab: #582
parent d43c1927
......@@ -232,6 +232,8 @@ ContactList::saveTrustRequests() const
void
ContactList::loadTrustRequests()
{
if (!fileutils::isFile(fileutils::getFullPath(path_, "incomingTrustRequests")))
return;
std::map<dht::InfoHash, TrustRequest> requests;
try {
// read file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment