finish bar

This commit is contained in:
Zack Scholl 2018-06-24 10:13:58 -07:00
parent 97f99e60f2
commit 13670d683c
1 changed files with 4 additions and 0 deletions

View File

@ -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")