From ba3fa6ffcee88f892a2803f064dbfd7ec2adb59b Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sun, 1 Jul 2018 20:52:01 -0700 Subject: [PATCH] Make sure to remove croc-stdin --- src/cleanup.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cleanup.go b/src/cleanup.go index 4416d2c2..89015c0a 100644 --- a/src/cleanup.go +++ b/src/cleanup.go @@ -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() }