fix: avoid deadlocks when participant closing, adapt to ion-sfu changes

This commit is contained in:
David Zhao committed 2021-06-09 14:16:48 -07:00
1 parent db7d5fff52
commit b10d903d3e
2 files changed
+30 -27

No files matched your search

+2
View File
@@ -135,6 +135,7 @@ func createSingleNodeServer() *service.LivekitServer {
if err != nil {
panic(fmt.Sprintf("could not create config: %v", err))
}
conf.Development = true
currentNode, err := routing.NewLocalNode(conf)
currentNode.Id = utils.NewGuid(nodeId1)
@@ -165,6 +166,7 @@ func createMultiNodeServer(nodeId string, port uint32) *service.LivekitServer {
conf.RTC.UDPPort = port + 1
conf.RTC.TCPPort = port + 2
conf.Redis.Address = "localhost:6379"
conf.Development = true
currentNode, err := routing.NewLocalNode(conf)
if err != nil {