Start revid if !paused.

This commit is contained in:
Alan Noble 2018-06-28 16:01:15 +09:30
parent 0daaf89154
commit 796aaa9d95
1 changed files with 7 additions and 0 deletions

View File

@ -274,6 +274,13 @@ func run() error {
if vars["mode"] == "Paused" { if vars["mode"] == "Paused" {
paused = true paused = true
} }
if !paused {
err = updateRevid(&ns, vars, false)
if err != nil {
return err
}
}
for { for {
if err := send(&ns); err != nil { if err := send(&ns); err != nil {
config.Logger.Log(progName, "Warning", err.Error()) config.Logger.Log(progName, "Warning", err.Error())