Fix missing status checks

This commit is contained in:
Cameron Gutman 2014-08-24 11:43:52 -07:00
parent fa93a6cef5
commit e438445219
2 changed files with 6 additions and 0 deletions

View File

@ -195,6 +195,9 @@ int startAudioStream(void) {
callbacks.init();
rtpSocket = bindUdpSocket(RTP_PORT);
if (rtpSocket == INVALID_SOCKET) {
return LastSocketError();
}
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
if (err != 0) {

View File

@ -163,6 +163,9 @@ int startVideoStream(void* rendererContext, int drFlags) {
configuration.height, 60, rendererContext, drFlags);
rtpSocket = bindUdpSocket(RTP_PORT);
if (rtpSocket == INVALID_SOCKET) {
return LastSocketError();
}
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
if (err != 0) {