diff --git a/server.go b/server.go index 962a817c..70a7d7c9 100644 --- a/server.go +++ b/server.go @@ -103,8 +103,10 @@ Loop: fmt.Fprintln(c, rest) } } else { - if c, ok := gConnList[id]; ok { - fmt.Fprintln(c, rest2) + if c2, ok := gConnList[id]; ok { + fmt.Fprintln(c2, rest2) + } else { + echoerr(c, "listen: send: no such client id is connected") } } }