派生自 libgowrapper/face

zhangmeng
2020-01-13 b048a78b5a541024d4f98251a61b157b1436d789
add reboot
1个文件已修改
3 ■■■■ 已修改文件
run.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
run.go
@@ -13,7 +13,7 @@
    "basic.com/valib/gogpu.git"
)
const maxTryBeforeReboot = 30
const maxTryBeforeReboot = 10
type face struct {
    handle *SDKFace
@@ -59,6 +59,7 @@
                f.rebootUntil++
                f.fnLogger("Face No Running: ", f.rebootUntil)
                if f.rebootUntil > maxTryBeforeReboot {
                    f.fnLogger("Face Too Long Running, Reboot")
                    os.Exit(0)
                }
            }