Skip to content

Commit

Permalink
fix: set rparticipant to None by default (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
MDBox authored Oct 3, 2023
1 parent f7adeb6 commit 3e410a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions livekit/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ def _on_room_event(self, event: proto_room.RoomEvent):

data = bytearray(native_data)
FfiHandle(owned_buffer_info.handle.id)
rparticipant = None
if event.data_received.participant_sid:
rparticipant = self.participants[event.data_received.participant_sid]
self.emit('data_received', data,
Expand Down

0 comments on commit 3e410a2

Please sign in to comment.