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

finish bar

This commit is contained in:
Zack Scholl 2018-06-24 10:13:58 -07:00
parent 97f99e60f2
commit 13670d683c

View file

@ -622,6 +622,8 @@ func (c *Connection) runClient(serverName string) error {
} else if !fileTransfered { } else if !fileTransfered {
fmt.Fprintf(os.Stderr, "\nNo mutual consent") fmt.Fprintf(os.Stderr, "\nNo mutual consent")
return nil return nil
} else {
c.bar.Finish()
} }
fileOrFolder := "File" fileOrFolder := "File"
if c.File.IsDir { if c.File.IsDir {
@ -635,6 +637,8 @@ func (c *Connection) runClient(serverName string) error {
} else if !fileTransfered { } else if !fileTransfered {
fmt.Fprintf(os.Stderr, "\nNo mutual consent") fmt.Fprintf(os.Stderr, "\nNo mutual consent")
return nil return nil
} else {
c.bar.Finish()
} }
if !responses.gotOK { if !responses.gotOK {
return errors.New("Transfer interrupted") return errors.New("Transfer interrupted")