Ensure RoomService operation is complete prior to returning (#362)

* Ensure service doesn't return before operation is complete

* added integration tests for RoomService
This commit is contained in:
David Zhao
2022-01-21 11:00:33 -08:00
committed by GitHub
parent 126bb8867b
commit f9a1dd97c2
7 changed files with 261 additions and 21 deletions
+5 -1
View File
@@ -397,10 +397,14 @@ func (r *RoomManager) handleRTCMessage(_ context.Context, roomName livekit.RoomN
}
participant := room.GetParticipant(identity)
var sid livekit.ParticipantID
if participant != nil {
sid = participant.ID()
}
pLogger := rtc.LoggerWithParticipant(
rtc.LoggerWithRoom(logger.Logger(logger.GetLogger()), roomName, room.ID()),
identity,
"",
sid,
)
switch rm := msg.Message.(type) {