diff --git a/agent/tactical/service/service.go b/agent/tactical/service/service.go index f6ecd81..cd14930 100644 --- a/agent/tactical/service/service.go +++ b/agent/tactical/service/service.go @@ -437,7 +437,7 @@ func RunRPC() error { } else { ret.Encode("ok") 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) nc.Flush() nc.Close() diff --git a/agent/tactical/tactical_windows.go b/agent/tactical/tactical_windows.go index b2af13a..8e5f0ff 100644 --- a/agent/tactical/tactical_windows.go +++ b/agent/tactical/tactical_windows.go @@ -48,7 +48,7 @@ func UninstallCleanup() { tasks.CleanupSchedTasks() } -func AgentUpdate(url, inno, version string) { +func AgentUpdate(url string, inno string) { time.Sleep(time.Duration(utils.RandRange(1, 15)) * time.Second) system.KillHungUpdates() CleanupAgentUpdates()