bugfix
This commit is contained in:
parent
74cb72f197
commit
4c8eda783f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue