Fix freeze in complex file location saving.

Fixes #6986.
This commit is contained in:
John Preston 2020-03-06 13:49:39 +04:00
parent 1df1b9fb53
commit 14aa455164

View file

@ -3158,7 +3158,7 @@ void writeFileLocation(MediaKey location, const FileLocation &local) {
return;
}
if (i.value().first != location) {
for (FileLocations::iterator j = _fileLocations.find(i.value().first), e = _fileLocations.end(); (j != e) && (j.key() == i.value().first);) {
for (FileLocations::iterator j = _fileLocations.find(i.value().first), e = _fileLocations.end(); (j != e) && (j.key() == i.value().first); ++j) {
if (j.value() == i.value().second) {
_fileLocations.erase(j);
break;