fix: 调整 conns 添加 conn 的语句顺序,防止可能存在的程序卡死
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user