Skip to content

Commit

Permalink
set error after listener closed
Browse files Browse the repository at this point in the history
  • Loading branch information
WeidiDeng committed Oct 28, 2024
1 parent 20ad872 commit 892a5e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layer4/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (l *listener) loop() {
conn, err := l.Listener.Accept()
// listener closed
if l.closed.Load() {
l.err = net.ErrClosed
break
}

Expand Down

0 comments on commit 892a5e5

Please sign in to comment.