From 0e912b79cda8c76b7dffd9c87f49506bbbad0ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 27 Jun 2021 17:31:10 +0800 Subject: [PATCH] =?UTF-8?q?TOA=E9=80=9A=E8=AE=AF=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=85=B3=E9=97=AD=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/toa_manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/nodes/toa_manager.go b/internal/nodes/toa_manager.go index 2b70fbf..3e10ad6 100644 --- a/internal/nodes/toa_manager.go +++ b/internal/nodes/toa_manager.go @@ -86,6 +86,7 @@ func (this *TOAManager) SendMsg(msg string) error { if this.conn != nil { _, err := this.conn.Write([]byte(msg + "\n")) if err != nil { + _ = this.conn.Close() this.conn = nil } return err