Update FileManager.cpp

This commit is contained in:
Andrea Cavalli 2020-05-18 15:24:10 +02:00
parent 878022bc0d
commit b6546fea66

View File

@ -1025,7 +1025,9 @@ void FileManager::on_file_unlink(const FullLocalFileLocation &location) {
}
auto file_id = it->second;
auto file_node = get_sync_file_node(file_id);
CHECK(file_node);
if (!file_node) {
return;
}
file_node->drop_local_location();
try_flush_node_info(file_node, "on_file_unlink");
}