automatically cleanup participant redis data

This commit is contained in:
David Zhao
2021-01-18 17:56:48 -08:00
parent 834a4747ac
commit d83a1b1af3
15 changed files with 262 additions and 59 deletions
+4
View File
@@ -103,6 +103,10 @@ func (s *LivekitServer) Start() error {
<-s.doneChan
if err := s.router.UnregisterNode(); err != nil {
logger.Errorw("could not unregister node", "error", err)
}
// wait for shutdown
ctx, _ := context.WithTimeout(context.Background(), time.Second*5)
s.httpServer.Shutdown(ctx)