0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 21:30:16 +02:00

add back receiver bar

This commit is contained in:
Zack Scholl 2018-06-24 07:11:42 -07:00
parent b3847798a4
commit 26ef99c170

View file

@ -589,8 +589,7 @@ func (c *Connection) runClient(serverName string) error {
responses.startTime = time.Now() responses.startTime = time.Now()
responses.Unlock() responses.Unlock()
if !c.Debug && id == 0 { if !c.Debug && id == 0 {
c.bar.Finish() c.bar = progressbar.NewOptions(c.File.Size, progressbar.OptionSetWriter(os.Stderr))
c.bar.Reset()
} else { } else {
// try to let the first thread start first // try to let the first thread start first
time.Sleep(10 * time.Millisecond) time.Sleep(10 * time.Millisecond)