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

@ -2,7 +2,7 @@ package onvif
import "github.com/IOTechSystems/onvif/device"
func (c *Connection) GetDeviceInformation() (*device.GetDeviceInformationResponse, error) {
func (c *Connection) GetDeviceInfo() (*device.GetDeviceInformationResponse, error) {
resp, err := c.Device.CallMethod(device.GetDeviceInformation{})
if err != nil {
return nil, err