Small refactor (#148)
* small refactor * extra line * fix room allocator test * selector fakes not used * keep decisions out of router * put nodeId logic back * fix room allocator test
This commit is contained in:
@@ -207,7 +207,7 @@ func (s *LivekitServer) Start() error {
|
||||
|
||||
func (s *LivekitServer) Stop(force bool) {
|
||||
// wait for all participants to exit
|
||||
s.router.PreStop()
|
||||
s.router.Drain()
|
||||
partTicker := time.NewTicker(5 * time.Second)
|
||||
waitingForParticipants := !force && s.roomManager.HasParticipants()
|
||||
for waitingForParticipants {
|
||||
|
||||
Reference in New Issue
Block a user