fix: 调整 conns 添加 conn 的语句顺序,防止可能存在的程序卡死

This commit is contained in:
2024-08-22 13:09:53 +08:00
parent c7327246a6
commit 9a595fa997
3 changed files with 8 additions and 6 deletions

View File

@ -13,6 +13,7 @@ func NewConnection(xaddr string, username string, password string) (*Connection,
Xaddr: xaddr,
Username: username,
Password: password,
AuthMode: onvif.DigestAuth,
})
if err != nil {
return nil, err