fix error reporting

pull/1524/head^2
Darien Raymond 2018-07-31 16:05:44 +02:00
parent 7baa6977d3
commit 73a1111083
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ func (server *Server) handleConnection(conn net.Conn) {
for {
mb, err := pReader.ReadMultiBuffer()
if err != nil {
if err == io.EOF {
return nil
}
return err
}
if err := w.WriteMultiBuffer(mb); err != nil {