mirror of https://github.com/schollz/croc.git
add back receiver bar
This commit is contained in:
parent
b3847798a4
commit
26ef99c170
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue