日志输出,空指针导致程序出错-测试获取帧
This commit is contained in:
parent
dea8f6e113
commit
aa898671de
|
|
@ -165,7 +165,6 @@ func subscribeAndHandleMessagesV3(ws *websocket.Conn, device_id int) {
|
||||||
for {
|
for {
|
||||||
//从service获取当前帧
|
//从service获取当前帧
|
||||||
img, c := service.GetDeviceCurrentFrame(device_id)
|
img, c := service.GetDeviceCurrentFrame(device_id)
|
||||||
c = count
|
|
||||||
if c != count {
|
if c != count {
|
||||||
//将img转[]byte
|
//将img转[]byte
|
||||||
if img.Empty() {
|
if img.Empty() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue