Skip to content
Snippets Groups Projects
Commit 5cfa50f7 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contact_list: do not load non existing file

Change-Id: I33c732784833808d092cefa402669a0bbdc0561e
GitLab: #582
parent d43c1927
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment