mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
debugging
This commit is contained in:
parent
1f3711fdba
commit
8d1be13ca8
2 changed files with 1 additions and 1 deletions
|
@ -416,6 +416,7 @@ func (c *Client) processMessage(m Message) (err error) {
|
||||||
case "close-recipient":
|
case "close-recipient":
|
||||||
c.Step4FileTransfer = false
|
c.Step4FileTransfer = false
|
||||||
c.Step3RecipientRequestFile = false
|
c.Step3RecipientRequestFile = false
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
|
@ -155,7 +155,6 @@ func (s *Session) receiveData(pathToFile string, fileSize int64) error {
|
||||||
defer func() {
|
defer func() {
|
||||||
log.Debugln("Stopped receiving data...")
|
log.Debugln("Stopped receiving data...")
|
||||||
f.Close()
|
f.Close()
|
||||||
os.Exit(0)
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
firstByte := true
|
firstByte := true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue