mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
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)
|
err := s.doHandshake(conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == io.EOF || s.quitting() {
|
if errors.Is(err, io.EOF) || s.quitting() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err := s.doError(conn, err)
|
err := s.doError(conn, err)
|
||||||
|
@ -132,7 +132,7 @@ func (s *Server) handleConn(conn net.Conn) {
|
||||||
for {
|
for {
|
||||||
err = s.receiveBlob(conn)
|
err = s.receiveBlob(conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == io.EOF || s.quitting() {
|
if errors.Is(err, io.EOF) || s.quitting() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err := s.doError(conn, err)
|
err := s.doError(conn, err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue