fix: make SmallWebRTCConnection pc_id globally unique

This commit is contained in:
Om Chauhan
2026-01-18 19:41:51 +05:30
parent 829c5f4604
commit 990d8386e4

View File

@@ -14,6 +14,7 @@ for real-time communication applications.
import asyncio
import json
import time
import uuid
from typing import Any, List, Literal, Optional, Union
from loguru import logger
@@ -278,7 +279,7 @@ class SmallWebRTCConnection(BaseObject):
self._answer: Optional[RTCSessionDescription] = None
self._pc = RTCPeerConnection(rtc_config)
self._pc_id = self.name
self._pc_id = f"{self.name}-{uuid.uuid4().hex}"
self._setup_listeners()
self._data_channel = None
self._renegotiation_in_progress = False