File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ def unregister_text_stream_handler(self, topic: str):
577577 self ._text_stream_handlers .pop (topic )
578578
579579 async def disconnect (
580- self , * , reason : DisconnectReason = DisconnectReason .CLIENT_INITIATED
580+ self , * , reason : DisconnectReason . ValueType = DisconnectReason .CLIENT_INITIATED
581581 ) -> None :
582582 """Disconnects from the room."""
583583 if not self .isconnected ():
@@ -664,11 +664,9 @@ def _on_room_event(self, event: proto_room.RoomEvent):
664664 rparticipant ._info .disconnect_reason = event .participant_disconnected .disconnect_reason
665665 self .emit ("participant_disconnected" , rparticipant )
666666 elif which == "participant_active" :
667- rparticipant = self ._retrieve_remote_participant (
668- event .participant_active .participant_identity
669- )
670- if rparticipant :
671- self .emit ("participant_active" , rparticipant )
667+ rp = self ._retrieve_remote_participant (event .participant_active .participant_identity )
668+ if rp :
669+ self .emit ("participant_active" , rp )
672670 elif which == "local_track_published" :
673671 sid = event .local_track_published .track_sid
674672 lpublication = self .local_participant .track_publications [sid ]
You can’t perform that action at this time.
0 commit comments