diff --git a/cmd/cp-main.go b/cmd/cp-main.go index bd398e11..dd5a776d 100644 --- a/cmd/cp-main.go +++ b/cmd/cp-main.go @@ -479,6 +479,7 @@ loop: if session != nil { session.CloseAndDie() } + break loop case cpURLs, ok := <-statusCh: // Status channel is closed, we should return. if !ok {