diff --git a/Source/Common/Core.cpp b/Source/Common/Core.cpp index bceb5a3..c2a726b 100644 --- a/Source/Common/Core.cpp +++ b/Source/Common/Core.cpp @@ -596,9 +596,10 @@ size_t Core::Menu_File_Open_Files_Finish_End() Canceled=true; if (Handler->second.Riff) Handler->second.Riff->Cancel(); + + while(Handler->second.Riff && !Handler->second.Riff->Canceled_Get()) + Sleep(20); CS.Leave(); - while(Handler->second.Riff && !Handler->second.Riff->Canceled_Get()) - Sleep(20); } CriticalSectionLocker CSL(CS);