diff --git a/common/src/rtc-signaling.ts b/common/src/rtc-signaling.ts index 859117e32..1cf8a9d6a 100644 --- a/common/src/rtc-signaling.ts +++ b/common/src/rtc-signaling.ts @@ -298,7 +298,7 @@ export async function connectRTCSignalingClients( if (offerOptions?.offer && answerOptions?.offer) throw new Error('Both RTC clients have offers and can not negotiate. Consider implementing this in @scrypted/webrtc.'); - if (offerOptions?.requiresOffer && answerOptions.requiresOffer) + if (offerOptions?.requiresOffer && answerOptions?.requiresOffer) throw new Error('Both RTC clients require offers and can not negotiate.'); offerSetup.type = 'offer';