Merge pull request #3493 from omChauhanDev/fix/globally-unique-pc-id
fix: make SmallWebRTCConnection pc_id globally unique
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user