File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -298,14 +298,16 @@ def _on_room_event(self, event: proto_room.RoomEvent):
298298 self .emit ('connection_quality_changed' ,
299299 participant , event .connection_quality_changed .quality )
300300 elif which == 'data_received' :
301- rparticipant = self .participants [event .data_received .participant_sid ]
302301 owned_buffer_info = event .data_received .data
303302 buffer_info = owned_buffer_info .data
304303 native_data = ctypes .cast (buffer_info .data_ptr ,
305304 ctypes .POINTER (ctypes .c_byte
306305 * buffer_info .data_len )).contents
306+
307307 data = bytearray (native_data )
308308 FfiHandle (owned_buffer_info .handle .id )
309+ if event .data_received .participant_sid :
310+ rparticipant = self .participants [event .data_received .participant_sid ]
309311 self .emit ('data_received' , data ,
310312 event .data_received .kind , rparticipant )
311313 elif which == 'e2ee_state_changed' :
You can’t perform that action at this time.
0 commit comments