Skip to content
Permalink
Browse files

Release file ids if we fail to parse. Not that there really should be

any file ids except the source file but it couldn't hurt.
  • Loading branch information...
Andersbakken committed May 25, 2019
1 parent 2191a26 commit 42bd740119e4cdfb8caa367aefa5f27ed44536d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Project.cpp
@@ -772,7 +772,7 @@ void Project::onJobFinished(const std::shared_ptr<IndexerJob> &job, const std::s
assert(((job->flags & (IndexerJob::Complete|IndexerJob::Crashed)) == IndexerJob::Complete)
|| ((job->flags & (IndexerJob::Complete|IndexerJob::Crashed)) == IndexerJob::Crashed));
const auto &options = Server::instance()->options();
if (!success) {
if (!success || msg->flags() & IndexDataMessage::ParseFailure) {
releaseFileIds(job->visited);
}

0 comments on commit 42bd740

Please sign in to comment.
You can’t perform that action at this time.