Change state to JOINED before sending JoinResponse (#674)

* Send room metadata as long as participant is not disconnected

* Change state to JOINED before sending join response
This commit is contained in:
Raja Subramanian
2022-05-09 13:28:56 +05:30
committed by GitHub
parent 081b97142f
commit 16407ea180
3 changed files with 6 additions and 5 deletions
+4
View File
@@ -37,6 +37,10 @@ func (p *ParticipantImpl) SendJoinResponse(
iceServers []*livekit.ICEServer,
region string,
) error {
if p.State() == livekit.ParticipantInfo_JOINING {
p.updateState(livekit.ParticipantInfo_JOINED)
}
// send Join response
return p.writeMessage(&livekit.SignalResponse{
Message: &livekit.SignalResponse_Join{