diff --git a/RevidCLI.go b/RevidCLI.go index aec18635..8a58198b 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -299,10 +299,11 @@ func periodicNetsenderReport() { } } - //inputs := []string{"X20", "X21"} inputs := netsender.SplitCSV(netsender.GetConfigParam("inputs")) - if _, _, err := netsender.Send(netsender.RequestPoll, inputs); err != nil { - config.Logger.Log("Error", err.Error()) + if _, reconfig, err := netsender.Send(netsender.RequestPoll, inputs); err == nil && reconfig { + if err = netsender.GetConfig(); err != nil { + config.Logger.Log("Error", err.Error()) + } } if cloudVarSum := netsender.GetVarSum(); cloudVarSum != varSum {