Do not restart the agent if POST /update
call should do nothing
#957
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
When the agent processes the
POST /update
command, it will check if the latest version is newer than the agent version. If it's not, the command should not do anything. Instead it always restarts the agent.Go-http-client/2.0
to something likeArduino-Cloud-Agent/1.5.0
.https://github.com/arduino/arduino-create-agent/blob/main/update.go#L37-L49
The code above should be improved.
The text was updated successfully, but these errors were encountered: