mirror of https://github.com/schollz/croc.git
finish bar
This commit is contained in:
parent
97f99e60f2
commit
13670d683c
|
@ -622,6 +622,8 @@ func (c *Connection) runClient(serverName string) error {
|
|||
} else if !fileTransfered {
|
||||
fmt.Fprintf(os.Stderr, "\nNo mutual consent")
|
||||
return nil
|
||||
} else {
|
||||
c.bar.Finish()
|
||||
}
|
||||
fileOrFolder := "File"
|
||||
if c.File.IsDir {
|
||||
|
@ -635,6 +637,8 @@ func (c *Connection) runClient(serverName string) error {
|
|||
} else if !fileTransfered {
|
||||
fmt.Fprintf(os.Stderr, "\nNo mutual consent")
|
||||
return nil
|
||||
} else {
|
||||
c.bar.Finish()
|
||||
}
|
||||
if !responses.gotOK {
|
||||
return errors.New("Transfer interrupted")
|
||||
|
|
Loading…
Reference in New Issue