- added a ResetEvent call in case that Timidity++ did not react to signalling the KillerEvent.

SVN r2942 (trunk)
This commit is contained in:
Christoph Oelckers 2010-10-14 14:40:26 +00:00
parent eb064ebe06
commit 7068c1df48
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ void TimidityPPMIDIDevice::Stop ()
SetEvent(KillerEvent);
if (WaitForSingleObject(ChildProcess, 500) != WAIT_OBJECT_0)
{
ResetEvent(KillerEvent);
TerminateProcess(ChildProcess, 666);
}
CloseHandle(ChildProcess);