diff --git a/client/daemon/peer/peertask_base.go b/client/daemon/peer/peertask_base.go index 98b875f1ee1..f668db86ff9 100644 --- a/client/daemon/peer/peertask_base.go +++ b/client/daemon/peer/peertask_base.go @@ -415,11 +415,12 @@ loop: }) if err != nil { - pt.Warnf("get piece task error: %s, wait available peers from scheduler", err) + pt.Warnf("get piece task error: %s, wait available peers from scheduler", err.Error()) pt.span.RecordError(err) if num, ok = pt.waitAvailablePeerPacket(); !ok { break loop } + continue loop } if !initialized {