fix resume/restart with single node mode (#930)

* fix resume/restart with single node mode

* clean comment
This commit is contained in:
cnderrauber
2022-08-18 12:46:18 +08:00
committed by GitHub
parent 05fcca9a04
commit 770076febf
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -415,9 +415,6 @@ func (r *RoomManager) getOrCreateRoom(ctx context.Context, roomName livekit.Room
// manages an RTC session for a participant, runs on the RTC node
func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.LocalParticipant, requestSource routing.MessageSource) {
defer func() {
// give time for the participant to be closed with a proper reason.
// if participant is closed from here, we would be obscuring the real reason the participant is closed.
time.Sleep(2 * time.Second)
logger.Infow("RTC session finishing",
"participant", participant.Identity(),
"pID", participant.ID(),