fix some
This commit is contained in:
parent
f174c4e02d
commit
c1c6635ed3
1 changed files with 1 additions and 2 deletions
|
|
@ -31,10 +31,9 @@ type client struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *client) read() (string, error) {
|
func (c *client) read() (string, error) {
|
||||||
// get the client's name
|
|
||||||
line, err := c.reader.ReadString('\n')
|
line, err := c.reader.ReadString('\n')
|
||||||
if err != nil {
|
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()
|
c.conn.Close()
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue