From fcb913240012b40ed0617330ebef460065f666ef Mon Sep 17 00:00:00 2001 From: zhyass <34016424+zhyass@users.noreply.github.com> Date: Wed, 15 Apr 2020 14:20:17 +0800 Subject: [PATCH] go-mysqlstack: fix the panic close of closed channel #614 [summary] Fix the panic 'close of closed channel'. [test case] N/A [patch codecov] N/A --- src/vendor/github.com/xelabs/go-mysqlstack/driver/client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vendor/github.com/xelabs/go-mysqlstack/driver/client.go b/src/vendor/github.com/xelabs/go-mysqlstack/driver/client.go index f888fa76..60c0f923 100644 --- a/src/vendor/github.com/xelabs/go-mysqlstack/driver/client.go +++ b/src/vendor/github.com/xelabs/go-mysqlstack/driver/client.go @@ -388,7 +388,6 @@ func (c *conn) Close() error { select { case <-ctx.Done(): c.Cleanup() - close(quitCh) case <-quitCh: c.Cleanup() }