Skip to content

Commit

Permalink
fw-face: suppress log on clean exit
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Dec 24, 2024
1 parent 3fc7e3d commit 236398a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fw/face/unicast-tcp-transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (t *UnicastTCPTransport) runReceive() {
*t.expirationTime = time.Now().Add(tcpLifetime)
t.linkService.handleIncomingFrame(b)
}, nil)
if err == nil {
if err == nil || t.closed {
break // EOF
}

Expand Down
2 changes: 1 addition & 1 deletion fw/face/unix-stream-transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (t *UnixStreamTransport) runReceive() {
t.nInBytes += uint64(len(b))
t.linkService.handleIncomingFrame(b)
}, nil)
if err != nil {
if err != nil && t.running.Load() {
core.LogWarn(t, "Unable to read from socket (", err, ") - Face DOWN")
}
}
Expand Down

0 comments on commit 236398a

Please sign in to comment.