mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- added a ResetEvent call in case that Timidity++ did not react to signalling the KillerEvent.
SVN r2942 (trunk)
This commit is contained in:
parent
eb064ebe06
commit
7068c1df48
1 changed files with 1 additions and 0 deletions
|
@ -650,6 +650,7 @@ void TimidityPPMIDIDevice::Stop ()
|
||||||
SetEvent(KillerEvent);
|
SetEvent(KillerEvent);
|
||||||
if (WaitForSingleObject(ChildProcess, 500) != WAIT_OBJECT_0)
|
if (WaitForSingleObject(ChildProcess, 500) != WAIT_OBJECT_0)
|
||||||
{
|
{
|
||||||
|
ResetEvent(KillerEvent);
|
||||||
TerminateProcess(ChildProcess, 666);
|
TerminateProcess(ChildProcess, 666);
|
||||||
}
|
}
|
||||||
CloseHandle(ChildProcess);
|
CloseHandle(ChildProcess);
|
||||||
|
|
Loading…
Reference in a new issue