From 7068c1df481ae62e248247a4446b2ff6a4119615 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 14 Oct 2010 14:40:26 +0000 Subject: [PATCH] - added a ResetEvent call in case that Timidity++ did not react to signalling the KillerEvent. SVN r2942 (trunk) --- src/sound/music_midi_timidity.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/music_midi_timidity.cpp b/src/sound/music_midi_timidity.cpp index c0efbf74e..dcaa934b9 100644 --- a/src/sound/music_midi_timidity.cpp +++ b/src/sound/music_midi_timidity.cpp @@ -650,6 +650,7 @@ void TimidityPPMIDIDevice::Stop () SetEvent(KillerEvent); if (WaitForSingleObject(ChildProcess, 500) != WAIT_OBJECT_0) { + ResetEvent(KillerEvent); TerminateProcess(ChildProcess, 666); } CloseHandle(ChildProcess);