Skip to content

Commit

Permalink
hotfix: try to create pullpoint subscription if first time failed
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Jan 3, 2024
1 parent 8be8caf commit 1e165cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions machinery/src/cloud/Cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1e165cb

Please sign in to comment.