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 {
|
} 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")
|
||||||
|
|
Loading…
Reference in New Issue