mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +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":
|
||||
c.Step4FileTransfer = false
|
||||
c.Step3RecipientRequestFile = false
|
||||
os.Exit(1)
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
|
|
|
@ -155,7 +155,6 @@ func (s *Session) receiveData(pathToFile string, fileSize int64) error {
|
|||
defer func() {
|
||||
log.Debugln("Stopped receiving data...")
|
||||
f.Close()
|
||||
os.Exit(0)
|
||||
}()
|
||||
|
||||
firstByte := true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue