Redis Router graceful stop (#116)
* prestop and hasparticipants in interface * add prestop function to existing routers * fakerouter prestop * update protocol version * read lock * redis router graceful stop * test fix * force stop
This commit is contained in:
@@ -132,6 +132,10 @@ func (r *LocalRouter) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *LocalRouter) PreStop() {
|
||||
r.currentNode.State = livekit.NodeState_SHUTTING_DOWN
|
||||
}
|
||||
|
||||
func (r *LocalRouter) Stop() {
|
||||
r.rtcMessageChan.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user