mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
tiny bug fix
This commit is contained in:
@@ -57,6 +57,7 @@ func (h *Handler) Handle(ctx context.Context, conn net.Conn) {
|
|||||||
if h.closing.Get() {
|
if h.closing.Get() {
|
||||||
// closing handler refuse new connection
|
// closing handler refuse new connection
|
||||||
_ = conn.Close()
|
_ = conn.Close()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
client := connection.NewConn(conn)
|
client := connection.NewConn(conn)
|
||||||
|
@@ -45,6 +45,7 @@ func (h *EchoHandler) Handle(ctx context.Context, conn net.Conn) {
|
|||||||
if h.closing.Get() {
|
if h.closing.Get() {
|
||||||
// closing handler refuse new connection
|
// closing handler refuse new connection
|
||||||
_ = conn.Close()
|
_ = conn.Close()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
client := &EchoClient{
|
client := &EchoClient{
|
||||||
|
Reference in New Issue
Block a user