removed unneeded version

This commit is contained in:
redanthrax 2022-06-23 15:13:03 -07:00
parent 3841aee4b2
commit de8e795254
2 changed files with 2 additions and 2 deletions

View file

@ -437,7 +437,7 @@ func RunRPC() error {
} else { } else {
ret.Encode("ok") ret.Encode("ok")
msg.Respond(resp) msg.Respond(resp)
tactical.AgentUpdate(p.Data["url"], p.Data["inno"], p.Data["version"]) tactical.AgentUpdate(p.Data["url"], p.Data["inno"])
atomic.StoreUint32(&agentUpdateLocker, 0) atomic.StoreUint32(&agentUpdateLocker, 0)
nc.Flush() nc.Flush()
nc.Close() nc.Close()

View file

@ -48,7 +48,7 @@ func UninstallCleanup() {
tasks.CleanupSchedTasks() tasks.CleanupSchedTasks()
} }
func AgentUpdate(url, inno, version string) { func AgentUpdate(url string, inno string) {
time.Sleep(time.Duration(utils.RandRange(1, 15)) * time.Second) time.Sleep(time.Duration(utils.RandRange(1, 15)) * time.Second)
system.KillHungUpdates() system.KillHungUpdates()
CleanupAgentUpdates() CleanupAgentUpdates()