Compare commits

..

No commits in common. "9f21e7c1d543788c6cfc59063e665826b507b845" and "fa554de402bb0d512d4522360f2ed5488cdb8fbf" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func subscribeAndHandleMessages(ws *websocket.Conn, device_id int) {
} }
} }
//查看是否还有其他连接没有则设置is_play为0 //查看是否还有其他连接没有则设置is_play为0
if worker.IsContainKey(online_conn_key) == false { if worker.GetRedisSetMembers(online_conn_key) == nil {
worker.SetRedisWithExpire(strconv.Itoa(device_id)+"_is_play", "0", time.Minute*5) worker.SetRedisWithExpire(strconv.Itoa(device_id)+"_is_play", "0", time.Minute*5)
fmt.Println("device_id:", device_id, " has set is_play to 0") fmt.Println("device_id:", device_id, " has set is_play to 0")
} }