diff --git a/netcard.go b/netcard.go index 5225980..2766ad8 100644 --- a/netcard.go +++ b/netcard.go @@ -265,7 +265,6 @@ func (nc *NetCard) runWrite() { if err != nil { log.Panic(err) } - zdec.Close() dec := gob.NewDecoder(buf) var bufs [][]byte @@ -274,6 +273,8 @@ func (nc *NetCard) runWrite() { log.Panic(err) } + zdec.Close() + for _, buf := range bufs { h := md5.New() h.Write(buf)