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
1 changed files with 5 additions and 0 deletions

View File

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