From 099cccdcb50ebbaffc3d89a54503ac4e090abdfd Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 13 Jun 2021 00:27:43 +0300 Subject: [PATCH] show remote error when client id does not exists cc #495 --- server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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") } } }