hotfix: try to create pullpoint subscription if first time failed

This commit is contained in:
Cedric Verstraeten
2024-01-03 18:44:53 +01:00
parent 8be8cafd00
commit 1e165cbeb8

View File

@@ -320,6 +320,12 @@ loop:
} else {
log.Log.Debug("cloud.HandleHeartBeat(): no pull point address found.")
onvifEventsList = []byte("[]")
// Try again
pullPointAddress, err = onvif.CreatePullPointSubscription(device)
if err != nil {
log.Log.Error("cloud.HandleHeartBeat(): error while creating pull point subscription: " + err.Error())
}
}
} else {