diff --git a/raspberry/roberto/camera/camera_gstreamer_webrtc.py b/raspberry/roberto/camera/camera_gstreamer_webrtc.py index 84ff862..dea322f 100644 --- a/raspberry/roberto/camera/camera_gstreamer_webrtc.py +++ b/raspberry/roberto/camera/camera_gstreamer_webrtc.py @@ -158,6 +158,9 @@ class WebRTCCamera(Thread): def handle_ice(self, ice, client_sid): print("handle_ice") candidate = ice['candidate'] + if not candidate or candidate == '': + print("candidate string is empty") + return sdpmlineindex = ice['sdpMLineIndex'] self._peers[client_sid]['webrtc'].emit('add-ice-candidate', sdpmlineindex, candidate)