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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user