Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from folbricht/folbricht-patch-1
Browse files Browse the repository at this point in the history
Close the connection on the server when the client closes it first
  • Loading branch information
lunny committed Jul 9, 2016
2 parents 08acff7 + be440d6 commit bb49d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (conn *Conn) Serve() {
line, err := conn.controlReader.ReadString('\n')
if err != nil {
if err == io.EOF {
continue
break
}

conn.logger.Print(fmt.Sprintln("read error:", err))
Expand Down

0 comments on commit bb49d51

Please sign in to comment.