Skip to content

Commit 53e0585

Browse files
committed
bar finish in wrong spot
1 parent b8f6472 commit 53e0585

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ func (c *Croc) dialUp() (err error) {
484484
log.Debugf("receiving file into %s", receiveFileName)
485485
err = c.receiveFile(receiveFileName, i, connection)
486486
}
487-
c.bar.Finish()
488487
errorChan <- err
489488
}(channel, uuid, port, i, errorChan)
490489
}
@@ -499,6 +498,9 @@ func (c *Croc) dialUp() (err error) {
499498
c.cs.channel.ws.WriteJSON(c.cs.channel)
500499
}
501500
}
501+
// close bar
502+
c.bar.Finish()
503+
// measure transfer time
502504
c.cs.Lock()
503505
c.cs.channel.transferTime = time.Since(c.cs.channel.startTransfer)
504506
c.cs.Unlock()

0 commit comments

Comments
 (0)