From 83ccfab5c7ec2a59bdba59a77cc174cb63977c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Tue, 30 Aug 2022 11:28:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netcard.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)