This commit is contained in:
黄思敏 2022-08-26 10:25:57 +08:00
parent 254d3d23f3
commit 1b33e66799

View File

@ -237,7 +237,6 @@ func (nc *NetCard) runWrite() {
for wframe := range nc.FrameChan { for wframe := range nc.FrameChan {
log.Printf("get wframes bytes len: %d", len(wframe)) log.Printf("get wframes bytes len: %d", len(wframe))
buf.Reset() buf.Reset()
buf.Write(wframe) buf.Write(wframe)
@ -254,6 +253,8 @@ func (nc *NetCard) runWrite() {
log.Panic(err) log.Panic(err)
} }
zdec.Close()
for _, buf := range bufs { for _, buf := range bufs {
_, err := ifce.Write(buf) _, err := ifce.Write(buf)
if err != nil { if err != nil {