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

update state

This commit is contained in:
Zack Scholl 2024-08-29 22:01:36 -07:00
parent e5d9ac5e5c
commit 8a7c184bfc

View file

@ -1999,6 +1999,7 @@ func (c *Client) receiveData(i int) {
log.Trace("sending close-sender") log.Trace("sending close-sender")
c.Step4FileTransferred = false c.Step4FileTransferred = false
c.Step3RecipientRequestFile = false c.Step3RecipientRequestFile = false
c.updateState()
// err = message.Send(c.conn[0], c.Key, message.Message{ // err = message.Send(c.conn[0], c.Key, message.Message{
// Type: message.TypeCloseSender, // Type: message.TypeCloseSender,
// }) // })
@ -2022,6 +2023,7 @@ func (c *Client) sendData(i int) {
c.bar.Finish() c.bar.Finish()
c.Step4FileTransferred = false c.Step4FileTransferred = false
c.Step3RecipientRequestFile = false c.Step3RecipientRequestFile = false
c.updateState()
} }
}() }()