Wait for Kick to finish

Fix #78
master
HimbeerserverDE 2022-04-20 20:12:52 +02:00
parent 239b4b9901
commit f1e68fd27e
No known key found for this signature in database
GPG Key ID: A3D3E205DA0B0401
2 changed files with 1 additions and 1 deletions

View File

@ -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)

1
run.go
View File

@ -79,6 +79,7 @@ func runFunc() {
for cc := range clts {
go func(cc *ClientConn) {
cc.Kick("Proxy shutting down.")
<-cc.Closed()
wg.Done()
}(cc)
}