From f3e7d3ebc3ea129c181ec026a37bfd08404109c0 Mon Sep 17 00:00:00 2001 From: Divya Sampath Kumar Date: Wed, 12 Jun 2024 17:25:47 -0700 Subject: [PATCH] build fix in non-threadpool case --- src/source/PeerConnection/PeerConnection.c | 5 ++++- src/source/Signaling/LwsApiCalls.c | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/source/PeerConnection/PeerConnection.c b/src/source/PeerConnection/PeerConnection.c index 327d43eba7..cfa9b3791e 100644 --- a/src/source/PeerConnection/PeerConnection.c +++ b/src/source/PeerConnection/PeerConnection.c @@ -522,6 +522,7 @@ VOID onIceConnectionStateChange(UINT64 customData, UINT64 connectionState) CHK_LOG_ERR(retStatus); } +#ifdef ENABLE_KVS_THREADPOOL STATUS peerConnectionAsync(startRoutine fn, PVOID data) { STATUS retStatus = STATUS_SUCCESS; @@ -530,6 +531,7 @@ STATUS peerConnectionAsync(startRoutine fn, PVOID data) return retStatus; } +#endif VOID onNewIceLocalCandidate(UINT64 customData, PCHAR candidateSdpStr) { @@ -1908,6 +1910,7 @@ STATUS peerConnectionGetMetrics(PRtcPeerConnection pPeerConnection, PPeerConnect pPeerConnectionMetrics->version = PEER_CONNECTION_METRICS_CURRENT_VERSION; } +#ifdef ENABLE_KVS_THREADPOOL MUTEX_LOCK(pWebRtcClientContext->stunCtxlock); if (pWebRtcClientContext->isContextInitialized) { if (pWebRtcClientContext->pStunIpAddrCtx->isIpInitialized) { @@ -1915,7 +1918,7 @@ STATUS peerConnectionGetMetrics(PRtcPeerConnection pPeerConnection, PPeerConnect } } MUTEX_UNLOCK(pWebRtcClientContext->stunCtxlock); - +#endif pPeerConnectionMetrics->peerConnectionStats.peerConnectionCreationTime = pKvsPeerConnection->peerConnectionDiagnostics.peerConnectionCreationTime; pPeerConnectionMetrics->peerConnectionStats.dtlsSessionSetupTime = pKvsPeerConnection->peerConnectionDiagnostics.dtlsSessionSetupTime; pPeerConnectionMetrics->peerConnectionStats.iceHolePunchingTime = pKvsPeerConnection->peerConnectionDiagnostics.iceHolePunchingTime; diff --git a/src/source/Signaling/LwsApiCalls.c b/src/source/Signaling/LwsApiCalls.c index b696157da7..be2a8510e1 100644 --- a/src/source/Signaling/LwsApiCalls.c +++ b/src/source/Signaling/LwsApiCalls.c @@ -2396,7 +2396,6 @@ PVOID receiveLwsMessageWrapper(PVOID args) CHK_STATUS(pSignalingClient->signalingClientCallbacks.messageReceivedFn(pSignalingClient->signalingClientCallbacks.customData, &pSignalingMessageWrapper->receivedSignalingMessage)); } - CleanUp: CHK_LOG_ERR(retStatus);