- Call the progress bar Finish method once all files are updated (#2165)

- Fixes https://github.com/minio/mc/issues/2161
This commit is contained in:
Nitish Tiwari
2017-05-26 18:17:50 +01:00
committed by Anis Elleuch
parent 6c677e0d11
commit fed9ebe39d
+1 -1
View File
@@ -229,7 +229,6 @@ func (mj *mirrorJob) startStatus() {
go func() {
// now we want to start the progress bar
mj.status.Start()
defer mj.status.Finish()
defer mj.wgStatus.Done()
for sURLs := range mj.statusCh {
@@ -262,6 +261,7 @@ func (mj *mirrorJob) startStatus() {
func (mj *mirrorJob) stopStatus() {
close(mj.statusCh)
mj.wgStatus.Wait()
mj.status.Finish()
}
// this goroutine will watch for notifications, and add modified objects to the queue