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