1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

debugging

This commit is contained in:
Zack Scholl 2019-04-11 09:39:56 -07:00
parent 1f3711fdba
commit 8d1be13ca8
2 changed files with 1 additions and 1 deletions

View file

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

View file

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