mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Fix missing status checks
This commit is contained in:
1 parent
fa93a6cef5
commit
e438445219
2 files changed
+6
No files matched your search
@@ -195,6 +195,9 @@ int startAudioStream(void) {
|
|||||||
callbacks.init();
|
callbacks.init();
|
||||||
|
|
||||||
rtpSocket = bindUdpSocket(RTP_PORT);
|
rtpSocket = bindUdpSocket(RTP_PORT);
|
||||||
|
if (rtpSocket == INVALID_SOCKET) {
|
||||||
|
return LastSocketError();
|
||||||
|
}
|
||||||
|
|
||||||
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
|||||||
@@ -163,6 +163,9 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
|||||||
configuration.height, 60, rendererContext, drFlags);
|
configuration.height, 60, rendererContext, drFlags);
|
||||||
|
|
||||||
rtpSocket = bindUdpSocket(RTP_PORT);
|
rtpSocket = bindUdpSocket(RTP_PORT);
|
||||||
|
if (rtpSocket == INVALID_SOCKET) {
|
||||||
|
return LastSocketError();
|
||||||
|
}
|
||||||
|
|
||||||
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
|||||||
Reference in new issue
Block a user