Compare commits

..

No commits in common. "83282285cb0d6b142448d599effefda443a1d263" and "f092e3ac4d0e4a346622a8f7da5618a6eaf0d704" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func VideoFeed(c *gin.Context) {
// 启动一个协程来监测客户端连接是否关闭,关闭时向 clientClosed 通道发送信号 // 启动一个协程来监测客户端连接是否关闭,关闭时向 clientClosed 通道发送信号
go func() { go func() {
<-c.Request.Context().Done() <-c.Request.Context().Done()
clientClosed <- struct{}{} close(clientClosed)
}() }()
// 查看是否还有其他连接,没有则设置 is_play 为 0 // 查看是否还有其他连接,没有则设置 is_play 为 0