Fix rare race condition that makes indexing hange after reconnect

This commit is contained in:
Martin 2020-01-17 12:41:57 +01:00
parent 4722bc347d
commit bb360d7247

View File

@ -607,6 +607,7 @@ void ClientConnector::CMD_WAIT_FOR_INDEX(const std::string &cmd)
Server->Log("Wait for async index " + async_id, LL_DEBUG);
state = CCSTATE_START_FILEBACKUP_ASYNC;
++it->second.refcount;
it->second.last_update = Server->getTimeMS();
curr_result_id = it->second.result_id;
IndexThread::refResult(curr_result_id);
}