aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mediacache.go1
-rw-r--r--run.go1
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)
diff --git a/run.go b/run.go
index 3dce801..f7ca66f 100644
--- a/run.go
+++ b/run.go
@@ -79,6 +79,7 @@ func runFunc() {
for cc := range clts {
go func(cc *ClientConn) {
cc.Kick("Proxy shutting down.")
+ <-cc.Closed()
wg.Done()
}(cc)
}