Skip to content

Commit

Permalink
TUN-8848: Don't treat connection shutdown as an error condition when …
Browse files Browse the repository at this point in the history
…RPC server is done
  • Loading branch information
chungthuang committed Jan 9, 2025
1 parent d8c7f1c commit ac34f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnelrpc/quic/session_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *SessionManagerServer) Serve(ctx context.Context, stream io.ReadWriteClo

select {
case <-rpcConn.Done():
return rpcConn.Err()
return nil
case <-ctx.Done():
return ctx.Err()
}
Expand Down

0 comments on commit ac34f94

Please sign in to comment.