Skip to content

Commit 601ddd9

Browse files
committed
fix: add return when receive unexpected error
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
1 parent 9638fba commit 601ddd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ func (c *serverConn) run(sctx context.Context) {
558558
return
559559
}
560560
log.G(ctx).WithError(err).Error("error receiving message")
561-
// else, initiate shutdown
561+
return
562562
case <-shutdown:
563563
return
564564
}

0 commit comments

Comments
 (0)