Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoshenka committed Aug 15, 2018
1 parent 74cb72f commit 4c8eda7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflector/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (s *Server) handleConn(conn net.Conn) {

err := s.doHandshake(conn)
if err != nil {
if err == io.EOF || s.quitting() {
if errors.Is(err, io.EOF) || s.quitting() {
return
}
err := s.doError(conn, err)
Expand All @@ -132,7 +132,7 @@ func (s *Server) handleConn(conn net.Conn) {
for {
err = s.receiveBlob(conn)
if err != nil {
if err == io.EOF || s.quitting() {
if errors.Is(err, io.EOF) || s.quitting() {
return
}
err := s.doError(conn, err)
Expand Down

0 comments on commit 4c8eda7

Please sign in to comment.