使用v3获取当前帧
This commit is contained in:
parent
6486b8328b
commit
f1401e8a9b
|
|
@ -245,13 +245,12 @@ func subscribeAndHandleMessagesV3(ws *websocket.Conn, device_id int) {
|
||||||
}
|
}
|
||||||
c = count
|
c = count
|
||||||
t++
|
t++
|
||||||
err5 := img.Close()
|
|
||||||
if err5 != nil {
|
|
||||||
log.Printf("img close err:%v", err)
|
|
||||||
} else {
|
|
||||||
if t%10 == 0 {
|
if t%10 == 0 {
|
||||||
log.Printf("device:%d send frame count:%d,img is closed", device_id, c)
|
log.Printf("device:%d send frame count:%d,img is closed", device_id, c)
|
||||||
}
|
}
|
||||||
|
err5 := img.Close()
|
||||||
|
if err5 != nil {
|
||||||
|
log.Printf("img close err:%v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue