replication: simpler PermanentError state + handle context cancellation

This commit is contained in:
Christian Schwarz
2018-10-19 16:18:19 +02:00
parent 814fec60f0
commit 4ede99b08c
3 changed files with 45 additions and 25 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ func (t *tui) renderReplicationReport(rep *replication.Report) {
t.newline()
}
if rep.SleepUntil.After(time.Now()) &&
state & ^(replication.ContextDone|replication.Completed) != 0 {
state & ^(replication.PermanentError|replication.Completed) != 0 {
t.printf("Sleeping until %s (%s left)\n", rep.SleepUntil, rep.SleepUntil.Sub(time.Now()))
}