This commit is contained in:
basil 2025-06-17 00:50:55 -04:00
parent f174c4e02d
commit c1c6635ed3
Signed by: basil
SSH key fingerprint: SHA256:y04xIFL/yqNaG9ae9Vl95vELtHfApGAIoOGLeVLP/fE

View file

@ -31,10 +31,9 @@ type client struct {
}
func (c *client) read() (string, error) {
// get the client's name
line, err := c.reader.ReadString('\n')
if err != nil {
log.Error("unable to read name from client", "err", err)
log.Error("unable to read from client", "err", err)
c.conn.Close()
return "", err
}