diff options
-rw-r--r-- | mediacache.go | 1 | ||||
-rw-r--r-- | run.go | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/mediacache.go b/mediacache.go index c949959..a812c94 100644 --- a/mediacache.go +++ b/mediacache.go @@ -9,7 +9,6 @@ import ( func (cc *contentConn) fromCache(filename, base64SHA1 string) bool { os.Mkdir(Path("cache"), 0777) - hash, err := b64.DecodeString(base64SHA1) if err != nil { cc.log("<-", base64SHA1, ": ", err) @@ -79,6 +79,7 @@ func runFunc() { for cc := range clts { go func(cc *ClientConn) { cc.Kick("Proxy shutting down.") + <-cc.Closed() wg.Done() }(cc) } |