- 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

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);