mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
finish bar
This commit is contained in:
parent
97f99e60f2
commit
13670d683c
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue