Fixed hang when TiMidity++ executable failed to launch

https://forum.zdoom.org/viewtopic.php?t=59539
This commit is contained in:
alexey.lysiuk 2018-02-20 12:20:18 +02:00
parent 117b796c6b
commit ff897997d6

View file

@ -692,6 +692,10 @@ bool TimidityPPMIDIDevice::FillStream(SoundStream *stream, void *buff, int len,
}
break;
}
else if (r == 0 && errno != 0)
{
break;
}
got += r;
} while(got < len);
if(got < len)