show remote error when client id does not exists

cc #495
This commit is contained in:
Gokcehan committed 2021-06-13 00:27:43 +03:00
1 parent 4220868cc7
commit 099cccdcb5
1 file changed
+4 -2
+4 -2
View File
@@ -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")
}
}
}