remove closure on ReadFullFrom

This commit is contained in:
Darien Raymond
2018-11-02 15:01:33 +01:00
parent 9360448c59
commit 58e2ed3381
27 changed files with 158 additions and 90 deletions

View File

@@ -69,7 +69,7 @@ func (server *Server) handleConnection(conn net.Conn) {
for {
b := buf.New()
if err := b.AppendSupplier(buf.ReadFrom(conn)); err != nil {
if _, err := b.ReadFrom(conn); err != nil {
if err == io.EOF {
return nil
}