Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions openpilot/system/webrtc/device/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import av
from teleoprtc.tracks import TiciVideoStreamTrack
from aiortc import MediaStreamError

from openpilot.cereal import messaging
from openpilot.common.realtime import DT_MDL
Expand Down Expand Up @@ -71,9 +70,6 @@ def _build_frame_data(self, msg) -> bytes:

async def recv(self):
while True:
if self.readyState != "live":
raise MediaStreamError

# while video is disabled, pause here without returning
if not self.video_enabled:
await asyncio.sleep(0.005)
Expand Down
Loading