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

Commit bb49d51

Browse files
authored
Merge pull request #8 from folbricht/folbricht-patch-1
Close the connection on the server when the client closes it first
2 parents 08acff7 + be440d6 commit bb49d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (conn *Conn) Serve() {
7373
line, err := conn.controlReader.ReadString('\n')
7474
if err != nil {
7575
if err == io.EOF {
76-
continue
76+
break
7777
}
7878

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

0 commit comments

Comments
 (0)