Skip to content

Commit

Permalink
build fix in non-threadpool case
Browse files Browse the repository at this point in the history
  • Loading branch information
disa6302 committed Jun 13, 2024
1 parent d3e426d commit f3e7d3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/source/PeerConnection/PeerConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -530,6 +531,7 @@ STATUS peerConnectionAsync(startRoutine fn, PVOID data)

return retStatus;
}
#endif

VOID onNewIceLocalCandidate(UINT64 customData, PCHAR candidateSdpStr)
{
Expand Down Expand Up @@ -1908,14 +1910,15 @@ 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) {
pPeerConnectionMetrics->peerConnectionStats.stunDnsResolutionTime = pWebRtcClientContext->pStunIpAddrCtx->stunDnsResolutionTime;
}
}
MUTEX_UNLOCK(pWebRtcClientContext->stunCtxlock);

#endif
pPeerConnectionMetrics->peerConnectionStats.peerConnectionCreationTime = pKvsPeerConnection->peerConnectionDiagnostics.peerConnectionCreationTime;
pPeerConnectionMetrics->peerConnectionStats.dtlsSessionSetupTime = pKvsPeerConnection->peerConnectionDiagnostics.dtlsSessionSetupTime;
pPeerConnectionMetrics->peerConnectionStats.iceHolePunchingTime = pKvsPeerConnection->peerConnectionDiagnostics.iceHolePunchingTime;
Expand Down
1 change: 0 additions & 1 deletion src/source/Signaling/LwsApiCalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,6 @@ PVOID receiveLwsMessageWrapper(PVOID args)
CHK_STATUS(pSignalingClient->signalingClientCallbacks.messageReceivedFn(pSignalingClient->signalingClientCallbacks.customData,
&pSignalingMessageWrapper->receivedSignalingMessage));
}

CleanUp:
CHK_LOG_ERR(retStatus);

Expand Down

0 comments on commit f3e7d3e

Please sign in to comment.