Commit 42a06869 authored by Aurimas Černius's avatar Aurimas Černius

Properly report finish if failure

parent 6cbc10ae
......@@ -112,17 +112,19 @@ void FileSystemSyncServer::upload_notes(const std::vector<Note::Ptr> & notes)
all_uploaded.signal();
}
notes_lock.unlock();
return;
}
}
catch (Glib::Exception & e) {
ERR_OUT(_("Failed to upload note: %s"), e.what().c_str());
notes_lock.lock();
++failures;
if(--total == 0) {
all_uploaded.signal();
}
notes_lock.unlock();
}
notes_lock.lock();
++failures;
if(--total == 0) {
all_uploaded.signal();
}
notes_lock.unlock();
});
}
......
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