FIRE-15975; Do not leave stale locks if flushing a bad file.

Nicky 2015-06-07 20:52:38 +02:00
parent af4f13f60a
commit 566db89385
1 changed files with 5 additions and 0 deletions

View File

@ -527,6 +527,11 @@ void LLVorbisDecodeState::flushBadFile()
{
LL_WARNS("AudioEngine") << "Flushing bad vorbis file from VFS for " << mUUID << LL_ENDL;
mInFilep->remove();
// <FS:ND> FIRE-15975; Delete the current file, or we might end with stale locks during the re-transfer
delete mInFilep;
mInFilep = NULL;
// </FS:ND>
}
}