also cleanup during startup
This commit is contained in:
		| @@ -55,6 +55,12 @@ func (a *Agent) AgentSvc(nc *nats.Conn) { | ||||
| 	a.Logger.Debugf("AgentSvc() sleeping for %v seconds", sleepDelay) | ||||
| 	time.Sleep(time.Duration(sleepDelay) * time.Second) | ||||
|  | ||||
| 	if runtime.GOOS == "windows" { | ||||
| 		a.KillHungUpdates() | ||||
| 		time.Sleep(1 * time.Second) | ||||
| 		a.CleanupAgentUpdates() | ||||
| 	} | ||||
|  | ||||
| 	conf := a.GetAgentCheckInConfig(a.GetCheckInConfFromAPI()) | ||||
| 	a.Logger.Debugf("+%v\n", conf) | ||||
| 	for _, s := range natsCheckin { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wh1te909
					wh1te909