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

Make sure to remove croc-stdin

This commit is contained in:
Zack Scholl 2018-07-01 20:52:01 -07:00
parent a1611ccc88
commit ba3fa6ffce

View file

@ -17,4 +17,9 @@ func (c *Croc) cleanup() {
} }
os.Remove(c.crocFile) os.Remove(c.crocFile)
os.Remove(c.crocFileEncrypted) os.Remove(c.crocFileEncrypted)
c.cs.Lock()
if c.cs.channel.fileMetaData.DeleteAfterSending {
os.Remove(c.cs.channel.fileMetaData.Name)
}
defer c.cs.Unlock()
} }